• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help
Scheduled Tasks Console \windows\system32\schtasks.exe

Control the Task Scheduler from the command line. (Scheduled Tasks Console is included with Windows XP Professional only.)

To Open

Command Prompt schtasks

Usage

schtasks /command_name [arguments]

Description

The Scheduled Tasks Console is the command-line equivalent of Scheduled Tasks, discussed earlier in this chapter. Although it doesn’t do anything not already possible with the Scheduled Tasks window, it can be convenient for automating the creation and management of tasks. The Scheduled Tasks Console accepts one of six options. To find out more about any of the commands, type schtasks / command_name /?:


/create [/s system [/u user [/p password ]]] /ru user [/rp password ]]/sc schedule [/mo modifier ] [/d day ] [/i idletime ] /tn taskname /tr taskrun [/st starttime ] [/m months ] [/sd startdate ] [/ed enddate ]

Creates a new scheduled task on the local computer or a remote system.


/delete [/s system [/u user [/p password ]]] /tn taskname [/f]

Deletes one or more scheduled task(s).


/query [/s system [/u user [/p password ]]] [/fo format ] [/nh] [/v]

Displays all scheduled tasks on the local computer or a remote system.


/change [/s system [/u username [/p password ]]] [/ru runasuser ] [/rp runaspassword ] [/tr taskrun ] /tn taskname

Changes some of the properties of an existing task, such as the program to run or the username and password.


/run [/s system [/u user [/p password ]]] /tn taskname

Runs a scheduled task immediately.


/end [/s system [/u user [/p password ]]] /tn taskname

Stops a currently running scheduled task.

Notes

The Scheduled Task Console is intended to replace At, discussed earlier in this chapter. Although the Scheduled Tasks Console is a little more full featured, At is much easier to use.

See Also

“Scheduled Tasks”

  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint