taskkill | new in WS2003 |
Kills running processes.
taskkill [/s Computer ] [/u Domain \ UserName [/p Password ]] [/fi FilterName ] {[/pid ProcessID ] [/im ImageName ]} [/f] [/t]
Name or IP address of a remote computer (if omitted, defaults to local computer).
Credentials for running the command (if omitted, defaults to currently logged-on user ).
Filters the types of process(es) to kill using:
Any valid string
Any valid positive integer
Any valid session number
Valid time in format HH:MM:SS
Any valid integer
Any valid username in format Domain\UserName
Any valid string
Any valid string
Any valid string
Be sure to put the filter in quotes.
Process ID of process to kill
Image name of process to kill (can use * to kill all processes)
Forces termination of process
Terminates the specified process and any child processes spawned by that process
Kill the instance of Notepad running on the local machine:
taskkill /fi "Imagename eq Notepad.exe" SUCCESS: Sent termination signal to the process with PID 308.
Use tasklist to obtain the process ID of running processes you wish to kill.
tasklist , Tasks