How To Kill All Processes With The Same Name On Windows
Share
The 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
Average Rating
5 thoughts on “How To Kill All Processes With The Same Name On Windows”
Leave a Reply Cancel reply
This site uses Akismet to reduce spam. Learn how your comment data is processed.
More Stories
How to Print a Directory Structure Using PowerShell: Step-by-Step Guide
If you need to print out the directory structure and list the files within, this PowerShell script will help you...
Quick Tip: Determine Active Directory Account Status From The Windows Commandline
Use the following command to Determine Active Directory Account Status from the Windows Commandline without Powershell or any special software....
Where Is Java Installed?
Below are a few commands that can be run to determine where Java is installed on each Operating System: Windows:...
Windows God Mode… What!?!
Windows God Mode is a hidden feature in the Windows operating system that allows users to access all of the system’s control panel options and settings in a single place.
How To Test A SQL Server Connection
There is an easy way to test your SQL Server connection when running Windows without any special software. I found...
4 Lines To Export Outlook Rules To Excel/CSV Using PowerShell
I used to use a ton of Outlook Rules to organize the thousands of emails that I receive each day....
Thank you. That helped me save ~ one hour of manually task termination 🙂
I’m glad it worked for you, Marco.😊
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.
works fine for me, run as admin kills all tasks w/ same name
taskkill is an awesome command.. thank you!