How to kill process in windows using cmd

Hello friends in this post you will learn “How to kill process in windows using cmd”. Friends killing or terminating a process without a task manager is possible using “taskkill” commands in Windows operating systems like Windows 7, 8, XP, 2003, 2008 servers. Taskkill is a powerful  command to kill or terminating (forcefully) any running process.

Windows Kill a Process by Process Name

Open up an Administrative level Command Prompt and run tasklist to see all of the running processes:

Image Name                     PID Session Name        Mem Usage
========================= ======== ================ ============
firefox.exe                  26356 Console             139,352 K
regedit.exe                  24244 Console               9,768 K
cmd.exe                      18664 Console               2,380 K
conhost.exe                   2528 Console               7,852 K
notepad.exe                  17364 Console               7,892 K
notepad.exe                  24696 Console              22,028 K
notepad.exe                  25304 Console               5,852 K
explorer.exe                  2864 Console              72,232 K
In the example above you can see the image name and the PID for each process. If you want to kill the firefox process run:
C:>Taskkill /IM firefox.exe /F
C:>Taskkill /PID 26356 /F
The /f flag is kills the process forcefully.  Failure to use the /F flag will result in nothing happening in some cases.  One example is whenever I want to kill the explorer.exe process I have to use the /F flag or else the process just does not terminate.
This is very nice way to close your task which are hang.
Friends if you have multiple instances of an image open such as multiple firefox.exe processes, running the taskkill /IM firefox.exe command will kill all instances. When you specify the PID only the specific instane of firefox will be terminated.

Windows Kill a process by pid (Process ID)

C:>taskkill /PID 1372

How to kill task in cmd by pid 

Tags: Kill a Process in Command Prompt in Windows 7/XP,cmd stop commandtaskkill windows,the process with pid could not be terminated,process could not be terminated access denied,cmd list processes,taskkill windows 10,taskkill multiple processes,taskkill not working,taskkill windows,the process with pid could not be terminated,process could not be terminated access denied,cmd list processes,cmd stop command,taskkill multiple processes,taskkill not working,taskkill windows 10,how to kill a process in windows 7 by command prompt,taskkill windows 7,there is no running instance of the task,cmd stop command,process could not be terminated access denied,cmd list processes,taskkill multiple processes,taskkill windows 10,taskkill not working

Leave a Reply

Your email address will not be published. Required fields are marked *