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 [/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 ...
Get Windows XP in a Nutshell 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.