Eventtriggers
Updated: April 17, 2012
Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2, Windows XP
Eventtriggers is deprecated, and is not guaranteed to be supported in future releases of Windows.
This tool is included in Windows Server 2003. For more information see Eventtriggers.
Server 2008 R2 - Use schtasks.exe
On Win 2008 R2, use the schtasks /create command, with the start condition ONEVENT to get the same functionality as provided by eventtriggers on earlier Windows versions.
Running schtasks /create /? will give you some idea of how to do this:
Alternatively, you can use the 'Task Scheduler' GUI, and set the trigger to 'on an event', then tell it which event/event filter you want it to match.
Running schtasks /create /? will give you some idea of how to do this:
Creates a scheduled task "EventLog" to run wevtvwr.msc starting whenever event 101 is published in the System channel
SCHTASKS /Create /TN EventLog /TR wevtvwr.msc /SC ONEVENT /EC System /MO *[System/EventID=101]
Alternatively, you can use the 'Task Scheduler' GUI, and set the trigger to 'on an event', then tell it which event/event filter you want it to match.
- 2/29/2012
- adamThompson
