Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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".

share|improve this question
    
this one isn't urgent anymore since I figured out the issue. Microsoft decided to make their XPath attribute/property not match the event history column name. –  MacGyver Jun 11 '12 at 23:41
    
You should answer your own question and accept your answer. –  Evan Anderson Jun 12 '12 at 2:38
    
I don't know the answer though. I got around the issue (by answering my first question which I hyperlinked), so I don't have to develop anything. Although it would be nice to know the path because there are things people could by querying the actual files that XPath cannot do. –  MacGyver Jun 12 '12 at 23:34
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.