Task Scheduler Alert Task

January 27, 20141 Comment

We use Task Scheduler on Windows Server 2008 to run a few integration scripts. When those tasks fail, I’d like Task Scheduler to send me an email alert.

In Task Scheduler, I created a task with a trigger and the following Custom Event filter. The action on the task sends me an email whenever this trigger fires. This should help me catch the occasional script failure — as long as Task Scheduler and the server are still running. :)

  <Query Id="0" Path="Microsoft-Windows-TaskScheduler/Operational">
    <Select Path="Microsoft-Windows-TaskScheduler/Operational">*[System[(EventID=201)] and EventData[@Name="ActionSuccess"]/Data[(@Name="ResultCode")]!=0]</Select>

This article contains additional details on setting up a task to read an event log and send an alert.


One Response to “Task Scheduler Alert Task”

  1. Genuinely no matter if someone doesn’t understand afterward
    its up to other users that they will assist, so here it takes place.

    Feel free to surf to my site buy rosehip oil online

Leave a Reply

Twitter Tweet This