E1Tips Qucik Tip

How To Kill All Processes With The Same Name On Windows

Read Time:38 Sec

E1Tips Qucik TipThe taskkill command can be used many different ways to end or kill running processes on Windows Server 2012 and above. Taskkill replaces the kill command that is available in lower versions of Windows.

Processes can be killed by either Process ID (PID) or Image (Process) Name.

A full description of the options available and various examples can be found in the Microsoft Windows Documentation for taskkill.

The command below will end all running processes with the name notepad.exe:

taskkill /F /IM notepad.exe /T
  • /F = force the process to terminate
  • /IM = specify the image name
  • /T = terminate the specified process and any child processes started by it

I hope that helps someone to be able to kill all processes with the same name on Windows.

 

Author

Stewart Schatz

Career: Principal CNC Consultant for Syntax Systems Limited specializing Oracle JD Edwards EnterpriseOne and the technology that supports it. Side Hustle: Owner/Operator of E1Tips.com Location: Lancaster, PA USA  What I like to do: Invest in Family, Explore Technology, Lead Teams, Share Knowledge/Experience, Hunt, Hike, etc.

Average Rating

5 Star
100%
4 Star
0%
3 Star
0%
2 Star
0%
1 Star
0%

5 thoughts on “How To Kill All Processes With The Same Name On Windows

  1. Doesn’t work on cmd.exe unless you only have a single instance running. If you have multiples it won’t kill any of them.

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Quick_Tip_Linux Previous post How To Start/Stop The Server Manager Agent On Linux
E1Tips Qucik Tip Next post A Better SMTP Test