We all are familiar with windows program ‘command prompt. It helps us in many ways and we can do many things with the help of this program. This method is very effective, but it is not fun to killing running process task in command prompt. It provides you to finish multiple tasks at a time. You can also monitor your running process task in the background. This command helps you when your task manager will get stuck or unresponsive due to intensive apps and you will not able to kill the particular process. If you are using task manager then you will not able to kill multiple tasks at a time and command prompt allows you.

Kill and Monitor Your Running Tasks

Kill or Monitor Your Running Tasks

Many time our system don’t respond properly and many applications are running in the background which can be slow down our system. Many of us are using third party application to solve this issue instant of inbuilt features of windows. Because many of us don’t know about these kind of commands.

Read Also:-Hide your private files and folder using command prompt.

How to kill a running process task with ‘Taskkill’ command.

Taskkill

This command can end one and more than one running task or process. You can kill task by the process ID (PID) or image name. OR This tool is used to terminate tasks by process id (PID) or image name.

You should Know!

Process ID (PID)- It is just a unique number which is used by most of operating system kernels to uniquely identify an active process. This ID helps to identify a hardware product or a registered software product.

Read Also:-Top Useful CMD Commands You Should Know.
Syntex

TASKKILL [/S system [/U username [/P [password]]]] { [/FI filter] [/PID processid | /IM imagename] } [/T] [/F]

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.

Filter Name:-
  • STATUS
  • IMAGENAME
  • PID
  • SESSION
  • CPUTIME
  • MEMUSAGE
  • USERNAME
  • MODULES
  • SERVICES
  • WINDOWTITLE
Valid Operators:
  • eq (equals)
  • ne (not equal)
  • gt (greater than)
  • lt (less than)
  • ge (greater than or equal)
  • le (less than or equal)
Read Also:-How to Fix Error & Recover Corrupted SD Card. 2 Ways

Point To Be Noted

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*”

Steps for Killing Tasks

Step 1.

Click on the start buttom and type CMD in the search box.

Step 2.

Right Click on it and then click on Run as Administrator. Then click on YES.




Step 3.

Type tasklist command and you will see the list of running tasks.

C:\Windows\system32>tasklist
Image Name                     PID Session Name        Session#    Mem Usage
========================= ======== ================ =========== ============
System Idle Process              0 Services                   0         24 K
System                           4 Services                   0      5,240 K
smss.exe                       448 Services                   0        136 K
csrss.exe                      600 Services                   0      3,376 K
wininit.exe                    680 Services                   0        272 K
csrss.exe                      704 Console                    1     33,736 K
services.exe                   748 Services                   0      7,680 K
lsass.exe                      764 Services                   0     11,012 K
lsm.exe                        772 Services                   0      2,796 K
winlogon.exe                   868 Console                    1      2,296 K
svchost.exe                    936 Services                   0      4,524 K
nvvsvc.exe                    1020 Services                   0      1,072 K
svchost.exe                    472 Services                   0      7,296 K
svchost.exe                    496 Services                   0     15,332 K
svchost.exe                   1032 Services                   0    245,664 K
Step 4.

In the above, you will see Image name, PID, Session name, Mem Usage. Now you can close any Application using PID or Image Name.

Example:-
C:\Windows\system32>taskkill/im wmplayer.exe

and your Windows Media player will be close and you will see this message.

SUCCESS: Sent termination signal to the process “wmplayer.exe” with PID 6728.

Step 5.

If you want to close multiple application at a time, then you should use  The PID (i recommend).

Taskkill /PID1230 /PID1241 /PID 1253 /T

If you have trees of any application such as multiple firefox.exe processing, then use taskkill /IM firefox.exe command is helpful.

If you want to find a specific task.
C:\Users\lewis>tasklist /fi "IMAGENAME eq TNSLSNR.exe"

Image Name                     PID Session Name        Session#    Mem Usage
========================= ======== ================ =========== ============
TNSLSNR.EXE                   2084 Services                   0        512 K
Read Also:-

How to enable & disable Administrator account? : 3 ways

How to reset your forgotten login password in windows? : 2 ways

11 ways to make your pc better using Windows Group Policy.

HOW TO INSTALL KALI LINUX IN ANDROID PHONES?

Closing Words

Now you will able to kill all running tasks at a single time. This command is very helpful when your system is not working properly and want to close some running tasks or want to stop background tasks of any third party application. Be careful before killing your task you may be harmed.

If you need to assistance or have any query, feel free to write to us in comments below. That’s! Not enough. Get more updates of Tele Trick Mania. Like us on Facebook Twitter and subscribe us to get updates in your inbox.