wmi - Creating a Win32_LocalTime _instancemodificationevent non repeating event -
I have a question that I do not seem capable of answering. I am using WMI to create some time bound events, and so far they are working well according to the expectations of events, repeats on the scheduled cycle. Now I have a 'once' event that is not repeated I can not seem to find a way to make it seem to find or answer elsewhere.
The following is an example from the MSDN website that creates a duplicate event:
What should I do, to make it non-repetitive, any thoughts? Cheers frog Class is an internal event Who reports that when a change was made for an example of a WMI class, in this case he is listening to the WMI class which returns the current time. Now you can add a non-repeating event to WQL sentece, year, month and day properties.
// Win32_LocalTime And Win32_UTCTime root \ cimv2 remain in the namespace. // defines the event namespace, the filter // can be compiled in any namespace. Example of __EventFilter as $ FILT1 {name = "wake-up call"; Query = "Select * __InstanceModificationEvent from where" "TargetInstance ISA" Win32_LocalTime "and" TargetInstance.Hour = 0 "and TargetInstance.Minute = and" TargetInstance.Second = 0 "; Query language = "wql"; Event namespace = "root \\ cimv2"; };
__EventFilter says $ FILT1 {name = "wake-up call"; Query = "__InstanceModificationEvent Select from" Where "" TargetInstance Isa "" Win32_LocalTime "and" TargetInstance.Hour = 0 "and TargetInstance.Minute = 0 and TargetInstance.Second = and" TargetInstance.Year = 2012 "and TargetInstance.Month = 7 and target instance.day = 12 "; Query language = "wql"; Event namespace = "root \\ cimv2"; };
Comments
Post a Comment