Chapter 12. Task Scheduler Scripting
The Windows Task Scheduler allows the user or administrator to schedule a program to be run at a particular time or in response to a specific event. Task Scheduler can also be controlled via script. Windows Vista and Windows Server 2008 ship with the new redesigned Task Scheduler 2.0 and in this chapter you'll see the changes made to Task Scheduler and how to make use of it. Here are some of the new features and capabilities:
Sends automatic email notifications when there are problems with the local or remote system
Launches new diagnostic programs when a problem with Task Scheduler or a scheduled task is detected
Can execute tasks when the PC is unattended
Offers the ability to run tasks in a particular sequence
Carries out actions based on an event logged in the system event log
Configures systems to automatically respond to system problems
Runs tasks in response to system changes of multiple triggers
Configures a system to wake up from standby or hibernation so that routine tasks can be carried out
Task Scheduler 2.0 also includes new tools and features, such as:
Triggers and actions
Credential management
Improved user interface
MMC snap-in
Task settings
Improved scripting support
Task Scheduler XML schema
Working with Task Scheduler
Before you go on to look at the new Task Scheduler scripting objects and some scripting examples, first take a look at how to interact with Task Scheduler from within Windows.
Using the MMC Snap-in
The Task Scheduler user interface ...
Get VBScript Programmer's Reference, Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.