Ending Processes using Command Prompt

Almost all people use Task Manager to end or kill processes in Windows since it’s the easy way and you don’t need to memorize or type anything. There is actually other way to kill or end processes in Windows and it’s by using the command prompt.
Using command prompt is more effective than using task manager since you can end or kill multiple processes at a time. Want to know how to do it? then read on…
You can end a process by the image name or process ID (PID). This can be done by using the taskkill command.
Open up command prompt and type “tasklist” without the double quotes. You will then get the list of running processes
To end process by image name:
Taskkill /IM notepad.exe /F
To end process by process ID:
Taskkill /PID 4036 /F
For more commands and examples refer below:
| TASKKILL [/S system [/U username [/P [password]]]] { [/FI filter] [/PID processid | /IM imagename] } [/T] [/F] | ||
| Description: This tool is used to terminate tasks by process id (PID) or image name. |
||
| Parameter List: | ||
| /S | System | Specifies the remote system to connect to. |
| /U | [domain\]user | Specifies the user context under which the command should execute. |
| /P | [password] | Specifies the password for the given user context. Prompts for input if omitted. |
| /FI | filter | Applies a filter to select a set of tasks. Allows “*” to be used. ex. imagename eq acme* |
| /PID | processid | Specifies the PID of the process to be terminated. Use TaskList to get the PID. |
| /IM | imagename | Specifies the image name of the process to be terminated. Wildcard ‘*’ can be used to specify all tasks or image names. |
| /T | Terminates the specified process and any child processes which were started by it. | |
| /F | Specifies to forcefully terminate the process(es). | |
| /? | Displays this help message. | |
| Filters: | ||
| Filter Name | Valid Operators | Valid Value(s) |
| STATUS | eq, ne | RUNNING | NOT RESPONDING | UNKNOWN |
| IMAGENAME | eq, ne | Image name |
| PID | eq, ne, gt, lt, ge, le | PID value |
| SESSION | eq, ne, gt, lt, ge, le | Session number. |
| CPUTIME | eq, ne, gt, lt, ge, le | CPU time in the format of hh:mm:ss. hh - hours, mm - minutes, ss - seconds |
| MEMUSAGE | eq, ne, gt, lt, ge, le | Memory usage in KB |
| USERNAME | eq, ne | User name in [domain\]user format |
| MODULES | eq, ne | DLL name |
| SERVICES | eq, ne | Service name |
| WINDOWTITLE | eq, ne | Window title |
|
1) Wildcard ‘*’ for /IM switch is accepted only when a filter is applied. 2) Termination of remote processes will always be done forcefully (/F). 3) “WINDOWTITLE” and “STATUS” filters are not considered when a remote machine is specified. |
||
| Examples: | ||
|
TASKKILL /IM notepad.exe TASKKILL /PID 1230 /PID 1241 /PID 1253 /T TASKKILL /F /IM cmd.exe /T TASKKILL /F /FI “PID ge 1000″ /FI “WINDOWTITLE ne untitle*” TASKKILL /F /FI “USERNAME eq NT AUTHORITY\SYSTEM” /IM notepad.exe TASKKILL /S system /U domain\username /FI “USERNAME ne NT*” /IM * TASKKILL /S system /U username /P password /FI “IMAGENAME eq note*” |
||
More SEO Tips? Read Articles Below:
- Wordpress: How to Export Content
- Digg adding nofollow to selected links
- Google Sandbox: What it does and How to deal with it
- Google Chrome OS Screenshots Leaked
- Uploading Files to Multiple File Hosting at the same time

