curtishagen also posted the following as part of his question:
Hi, I am using some part of the above code
Hi, I am using some part of the above code
if (preWin7)
{
// Create a trigger that will fire on a system security event
EventTrigger eTrigger = (EventTrigger)td.Triggers.Add(new EventTrigger());
eTrigger.SetBasic("Security", "VSSAudit", 25);
eTrigger.ValueQueries.Add("Name", "Value");
}
eTrigger.SetBasic("Security", "VSSAudit", 25); creates a duplicate value in the Log and Source of task scheduler, which doesn't work i-e execute notepad at my end. Is there anyway I can use eTrigger.GetBasic("Security", "VSSAudit", 25);. I tried using it, it gives me error as method has invalid arguments and it should be used with "out" keyword. Thanks!