I have a question that I dont seem to be able to find an answer to. I am using WMI to create some timed events, and so far they are working well. The events repeat on the scheduled cycle as expected. I am now searching for a way to create a 'one-time' event that does not repeat and cant seem to figure it out or find an answer anywhere.
The following is an example from the MSDN website that creates a repeating event:
// Win32_LocalTime and Win32_UTCTime reside in root\cimv2 namespace.
// Defining the EventNamespace allows the filter
// to be compiled in any namespace.
instance of __EventFilter as $FILT1
{
Name = "wake-up call";
Query = "SELECT * FROM __InstanceModificationEvent WHERE "
"TargetInstance ISA \"Win32_LocalTime\" AND "
"TargetInstance.Hour = 0 AND TargetInstance.Minute = 0 AND "
"TargetInstance.Second = 0";
QueryLanguage = "WQL";
EventNamespace = "root\\cimv2";
};
What I would like is to make it non-repeating. Any ideas?
Cheers
The Frog