Where are task scheduler event files stored on Windows Server 2008?
- by MacGyver
I tried setting up triggers in Task Scheduler Windows Server 2008, but Microsoft needs to fix a bug that I documented on Stack Overflow. So I can't use triggers until they fix this bug. Basically the Task Scheduler doesn't trigger an event that has a Result Code of 2147942402.
http://stackoverflow.com/questions/10933033/windows-server-2008-task-scheduler-trigger-xml-syntax-for-email-notification-ta
In the mean time, I'd like to write a task that runs .NET code that queries the log/event files programmatically every 15 minutes and sends success/failure emails based on the events that occured for the given tasks in task scheduler.
Here's where the XPath is stored for the Task Trigger XML tab (that I can't rely on):
C:\Windows\System32\Tasks\
I cannot find where the events (or log files containing the event ids) of each task are stored. Does anyone know where to find these log files?
The log name is "Microsoft-Windows-TaskScheduler/Operational".