Movatterモバイル変換


[0]ホーム

URL:


Skip to main content

This browser is no longer supported.

Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

Download Microsoft EdgeMore info about Internet Explorer and Microsoft Edge
Table of contentsExit editor mode

schtasks end

Feedback

In this article

Stops only the instances of a program started by a scheduled task. To stop other processes, you must use theTaskKill command.

Syntax

schtasks /end /tn <taskname> [/s <computer> [/u [<domain>\]<user> [/p <password>]]]

Parameters

ParameterDescription
/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.

Examples

To stop the instance of Notepad.exe started by theMy Notepad task, type:

schtasks /end /tn "My Notepad"

To stop the instance of Internet Explorer started by theInternetOn task on the remote computer,Svr01,type:

schtasks /end /tn InternetOn /s Svr01

Related links


Feedback

Was this page helpful?

YesNoNo

Need help with this topic?

Want to try using Ask Learn to clarify or guide you through this topic?

Suggest a fix?

  • Last updated on

In this article

Was this page helpful?

YesNo
NoNeed help with this topic?

Want to try using Ask Learn to clarify or guide you through this topic?

Suggest a fix?