C:\WINDOWS>SCHTASKS /DELETE /?
SCHTASKS /Delete
[/S system
[/U username
[/P password
]]] /TN taskname
[/F
]Description:
Deletes one or more scheduled tasks.
Parameter List:
/S system Specifies the remote system to connect to.
/U username Specifies the user context under
which the command should execute.
/P password Specifies the password for the given
user context.
/TN taskname Specifies the name of the scheduled task to
delete. Wildcard "*" may be used to delete
all tasks.
/F (Force) Deletes the task and suppresses
warnings if the specified task is currently
running.
/? Displays this help/usage.
Examples:
SCHTASKS /Delete /TN * /F
SCHTASKS /Delete /TN "Backup and Restore"
SCHTASKS /Delete /S system /U user /P password /TN "Start Restore"
SCHTASKS /Delete /S system /U user /P password /TN "Start Backup" /F
C:\WINDOWS>SCHTASKS /QUERY /?
SCHTASKS /Query
[/S system
[/U username
[/P password
]]] [/FO format
] [/NH
] [/V
] [/?
]Description:
Enables an administrator to display the scheduled tasks on the
local or remote system.
Parameter List:
/S system Specifies the remote system to connect to.
/U username Specifies the user context under
which the command should execute.
/P password Specifies the password for the given
user context.
/FO format Specifies the output format to be
displayed. Valid values: TABLE, LIST, CSV.
/NH Specifies that the column header should not
be displayed in the output.
Valid only for TABLE and CSV formats.
/V Specifies additional output to be
displayed.
/? Displays this help/usage.
Examples:
SCHTASKS /Query
SCHTASKS /Query /?
SCHTASKS /Query /S system /U user /P password
SCHTASKS /Query /FO LIST /V /S system /U user /P password
SCHTASKS /Query /FO TABLE /NH /V
C:\WINDOWS>SCHTASKS /CHANGE /?
SCHTASKS /Change
[/S system
[/U username
[/P password
]]] /TN taskname
Description:
Changes the program to run, or user account and password used
by a scheduled task.
Parameter List:
/S system Specifies the remote system to connect to.
/U username Specifies the user context under
which the command should execute.
/P password Specifies the password for the given
user context.
/RU username Changes the user name (user context) under
which the scheduled task has to run.
For the system account, valid values are
"", "NT AUTHORITY\SYSTEM" or "SYSTEM".
/RP password Specifies a new password for the existing
user context or the password for a new
user account. Password will not effect for
the system account.
/TR taskrun Specifies a new program that the scheduled
task runs. Type the path and file name of
the program.
/TN taskname Specifies which scheduled task to change.
/? Displays this help/usage.
Examples:
SCHTASKS /Change /RP password /TN "Backup and Restore"
SCHTASKS /Change /TR restore.exe /TN "Start Restore"
SCHTASKS /Change /S system /U user /P password /RU newuser
/TN "Start Backup"