Post last updated on July,1st 2009
Summary
For Windows Server 2003 and 2008.
I created a management pack, which discovers scheduled tasks and monitors them for successful execution as well as if they have a working schedule configured. On Windows 2003, the output of the schtasks.exe command is parsed. On Windows 2008 however; the Task Scheduler 2.0 library is used.
The object type ‘Windows Scheduled Task’ can be used in Distibuted Applications or to further categorize scheduled tasks by writing other management packs.
Features
Discovery:
-
Scheduled Tasks and AT tasks on Windows 2003 and 2008 Server
-
Server 2008 supports any OS language. On Server 2003 the following:
English, Dutch, German, French, Italian, Portuguese and Spanish
Monitors:
-
Last exit code
-
Invalid status (anything not 'Running' or NUL)
-
Next run definition available
-
Long running task (requires configuration)
-
Next scheduled execution skipped (task ran too long)
-
No active triggers defined (Windows 2008 only)
Rule:
-
Collect Scheduled Task job duration (if task runs > 1 minute)
Tasks:
-
Disable Scheduled Task
-
Enable Scheduled Task
-
Run Scheduled Task
-
End Scheduled Task
-
List all Scheduled Tasks
View:
-
Scheduled Task state
Download
- Download Windows Task Scheduler Management Pack Guide 1.1.1.1
- Download Windows Scheduled Task Management Pack (sealed) 1.1.1.1 (rename after downloading – it is a zip file)
Upgrade Compatibility
Due to the significant changes required to get Windows 2008 tasks managed and to incorporate language support for Windows 2003, this version of the MP is not upgrade compatible with the previous ones. Should you have been using the Windows 2003 management pack (Version 1.1.0.20 and below), you need to remove the old one before importing the 1.1.1.0 ones. My apologies for that.
