text stringlengths 0 4.23k |
|---|
[<domain>] |
<password> |
Examples |
To delete the Start Mail task from the schedule of a remote computer. |
schtasks /delete /tn Start Mail /s Svr16 |
This command uses the /s parameter to identify the remote computer. |
To delete all tasks from the schedule of the local computer, including tasks scheduled by other users. |
schtasks /delete /tn * /f |
This command uses the /tn * parameter to represent all tasks on the computer and the /f parameter to suppress the confirmation message. |
schtasks end |
Stops only the instances of a program started by a scheduled task. To stop other processes, you must use the TaskKill command. |
Syntax |
schtasks /end /tn <taskname> [/s <computer> [/u [<domain>\]<user> [/p <password>]]] |
Parameters |
Parameter |
Description |
/tn <taskname> |
Identifies the task that started the program. This parameter is required. |
/s <computer> |
Specifies the name or IP address of a remote computer (with or without backslashes). The default is the local computer. |
/u [<domain>] |
Runs this command with the permissions of the specified user account. By default, the command runs with the permissions of the current user of the local computer. The specified user account must be a member of the Administrators group on the remote computer. The /u and /p parameters are valid only when you use /s. |
/p <password> |
Specifies the password of the user account specified in the /u parameter. If you use the /u parameter without the /p parameter or the password argument, schtasks will prompt you for a password. The /u and /p parameters are valid only when you use /s. |
/? |
Displays help at the command prompt. |
<taskname> |
<computer> |
[<domain>] |
<password> |
Examples |
To stop the instance of Notepad.exe started by the My Notepad task, type: |
schtasks /end /tn "My Notepad" |
To stop the instance of Internet Explorer started by the InternetOn task on the remote computer, Svr01,type: |
schtasks /end /tn InternetOn /s Svr01 |
schtasks query |
Lists all the tasks scheduled to run on the computer. |
Syntax |
schtasks [/query] [/fo {TABLE | LIST | CSV}] [/nh] [/v] [/s <computer> [/u [<domain>\]<user> [/p <password>]]] |
Parameters |
Parameter |
Description |
/query |
Optionally, specifies the name of the operation. Using this query without an parameters performs a query. |
/fo <format> |
Specifies the output format. The valid values are TABLE, LIST, or CSV. |
/nh |
Removes column headings from the table display. This parameter is valid with the TABLE or CSV output formats. |
/v |
Adds the advanced properties of the task to the display. This parameter is valid with the LIST or CSV output formats. |
/s <computer> |
Specifies the name or IP address of a remote computer (with or without backslashes). The default is the local computer. |
/u [<domain>] |
Runs this command with the permissions of the specified user account. By default, the command runs with the permissions of the current user of the local computer. The specified user account must be a member of the Administrators group on the remote computer. The /u and /p parameters are valid only when you use /s. |
/p <password> |
Specifies the password of the user account specified in the /u parameter. If you use the /u parameter without the /p parameter or the password argument, schtasks will prompt you for a password. The /u and /p parameters are valid only when you use /s. |
/? |
Displays help at the command prompt. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.