Name
Taskkill —
\windows\system32\taskkill.exe
Synopsis
End one or more running processes, either on a local or remote system. (Taskkill is included with Windows XP Professional only.)
To Open
Command Prompt →
taskkill
Usage
taskkill [/ssystem[/uusername[/p [password]]]] { [/fifilter] [/pidpid| /imimage] } [/f] [/t]
Description
Taskkill is used to end one or more running processes from the command line. Taskkill works together with Tasklist, discussed later in this chapter, to provide command-line equivalents to the functionality provided by the Processes tab in Task Manager. For more information on processes, see Task Manager, discussed earlier in this chapter.
Taskkill takes the following command-line parameters:
-
/ssystem Specifies the remote system to which to connect.
-
/u [domain\]user Specifies the user context under which the command should execute.
-
/p [password] Specifies the password for the user specified by
\u; prompts for input if omitted.-
/f Specifies to forcefully terminate process(es).
-
/fifilter Displays a set of tasks that match a given criteria specified by the filter. Use Tasklist for more display options.
-
/pidprocess_id Specifies the process ID of the process to be terminated. To obtain the process IDs, use Tasklist (later in this chapter).
-
/imimage_name Specifies the image name of the process to be terminated; specify
*to terminate all image names.-
/t Terminates the specified process and process tree, which includes any child processes that were ...
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