Name
Scheduled Tasks Console —
\windows\system32\schtasks.exe
Synopsis
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 [/ssystem[/u user [/ppassword]]] /ruuser[/rppassword]] /scschedule[/momodifier] [/dday] [/iidletime] /tntaskname/trtaskrun[/ststarttime] [/mmonths] [/sdstartdate] [/edenddate] Creates a new scheduled task on the local computer or a remote system.
-
/delete [/ssystem[/uuser[/ppassword]]] /tntaskname[/f] Deletes one or more scheduled task(s).
-
/query [/ssystem[/uuser[/ppassword]]] [/foformat] [/nh] [/v] Displays all scheduled tasks on the local computer or a remote system.
-
/change [/ssystem[/uusername[/ppassword]]] [/rurunasuser] [/rprunaspassword] [/trtaskrun] /tntaskname Changes some of the properties of an existing task, such as the program to run or the username and password.
-
/run [/ssystem[/uuser[/ppassword]]] /tntaskname Runs a scheduled ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access