PsKill (part of PsTools - download PsKill)
Kill processes by name or process ID
Syntax
pskill [- ] [-t] [\\computer [-u user] [-p passwd]] <process name | process id>
Options:
computer The computer on which the process is running. Default=local system
-p passwd Specify a password for user (optional). Passed as clear text.
If omitted, you will be prompted to enter a hidden password.
-u user Specify a user name for login to remote computer(optional).
-t Kill the process and its descendants.
process id/name
The process or processes to be killed.
- Help, display the supported options.
To kill a process on a remote system requires administrative privileges on the remote system.
Examples:
Kill all instances of notepad.exe running on \\workstation64:
pskill \\workstation64 notepad
Related Commands:
PsList - List detailed information about processes
The process button of Task Manager in Windows will also identify the process ID (PID)
PsSuspend - Suspend processes (so they can be continued at a later point in time)
KILL - Remove a program from memory
Equivalent Linux BASH command:
kill - Stop a process from running, either via a signal or forced termination.