PDF download Download Article
Using the taskkill command to end Windows processes
PDF download Download Article

Taskkill is a Windows Command Prompt (cmd) command that ends one or more tasks. It's kind of like ending a task with Task Manager, but from the command line.[1] Taskkill can also do things like forcefully end a program if it won't close normally, or it can terminate multiple programs at once. For most people, Task Manager is the best program to use, but knowing taskkill is useful if you are writing a program or if you need to do something more advanced. This wikiHow article will teach you how to use the taskkill command to force quit programs on your Windows PC.

Running the Taskkill Command in Windows

Type the "tasklist" command and find a program you want to end. Type "taskkill /IM [image name]" and hit Enter. Use " /F" at the end of the command to force-close the process, and type "/T" to kill all its child processes. To end all non-responsive programs, type "taskkill FI "STATUS eq NOT RESPONDING" /F."

Method 1
Method 1 of 4:

Ending a Process

PDF download Download Article
  1. To do this, type Command Prompt into the taskbar search bar, and then click on "Command Prompt" in the results.
    • To start Command Prompt as an administrator, right-click it and select Run as administrator. You will need to do this to end any programs that are also running as administrator.
  2. This will display all running processes on the computer.[2] It's important to run this command first so that you can find the process names of the ones that you want to terminate.
    Advertisement
  3. Review the task list to search for the program that you want to end. Look at the "Image Name" column specifically, since you will need this information to kill the task. The "Image Name" column is the first column.
    • You will probably have to scroll down to review all of the processes since they won't fit all on one page.
  4. First, type in taskkill. Then, specify that you are killing the task based on its image name, so put in a space, and then type in /IM. After this, add another space and type the Image Name of the program that you want to end. For this example, notepad.exe will be the task that will be killed. Afterwards, press Enter. This will kill the task.
    • For this example, the whole command would look like taskkill /IM notepad.exe.
  5. Advertisement
Method 2
Method 2 of 4:

Forcefully Ending a Process

PDF download Download Article
  1. Just like the previous task, you need to type in tasklist to view the running programs and to retrieve the image name.[Image:CMD Run Tasklist.png|center]]
  2. You would first type in the command like you normally would. For example, to forcefully kill notepad.exe, you would type in taskkill /IM notepad.exe.[3] However, don't hit Enter just yet.
  3. The "/F" argument tells taskkill that you want to forcefully end the process. Keep in mind that you have to add a space before adding this argument.[4]
    • After adding /F to the command, press Enter to run the command.
  4. Advertisement
Method 3
Method 3 of 4:

Ending Child Processes

PDF download Download Article
  1. Just like the previous two processes, you'll need to view the task list before you can kill a process. In this method, we'll go over how to end a process with child processes that could prevent it from ending. A common program type that creates child processes is Internet browsers.
    • Adding the parameter to kill child processes can be helpful if using the /F parameter to forcefully kill a process doesn't seem to be working.[5]
  2. For example, if you wanted to end the Microsoft Edge process, you'd write taskkill /IM msedge.exe. However, don't press Enter yet.
  3. If the process isn't responding, you can add the /F parameter to kill the process forcefully.
  4. This parameter is /T. So, in this example, if you were forcefully killing Microsoft Edge, the command would look like taskkill /IM msedge.exe /F /T.
    • After adding /T to the command, press Enter to run the command.
  5. Advertisement
Method 4
Method 4 of 4:

Ending all Non-Responsive Programs

PDF download Download Article
  1. This is the beginning of the command.
  2. This specifies that you want to kill all programs that are not responding. Remember that you need to add a space after taskkill.[6]
  3. Since non-responsive programs will not close on their own, they need to be forcefully closed. Then, press Enter. This will end all non-responsive programs.[7]
    • Remember to add the space before typing /F.
  4. Advertisement

Expert Q&A

Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement

Video

Tips

  • The taskkill command is not case sensitive
  • There are many other things that taskkill can do, but most people will not need to use them. You can view all arguments for the taskkill command here.
  • Be careful with the command prompt. Although taskkill cannot really harm your computer, other commands can cause damage. You can always see what a command does by typing the first part, and then typing in /? after it.
Submit a Tip
All tip submissions are carefully reviewed before being published
Name
Please provide your name and last initial
Thanks for submitting a tip for review!
Advertisement

You Might Also Like

Force a Program to Close (Windows) Force a Program to Close (Windows): Quick Guide
Exit out of a Frozen Computer ProgramExit out of a Frozen Computer Program
Close Multiple PC Programs with a Batch FileClose Multiple PC Programs with a Batch File
Close Apps in Windows 10Close Apps in Windows 10
Run Task Manager from Command PromptRun Task Manager in CMD (+ More Task Manager Commands)
Force Quit an Application on a Mac Quit an Unresponsive App on a Mac: Step-by-Step Guide
Open Windows Task Manager Open Windows Task Manager: Menus, Shortcuts, & More
Shut Down Your Windows Computer from the Command LineShut Down Your Windows Computer from the Command Line
Ctrl Alt Delete Mac Ctrl Alt Delete on a Mac: Quit Apps + Check Performance
Delete a File or Folder Showing Error "Access Is Denied"Delete a File or Folder Showing Error "Access Is Denied"
Run a Program on Command Prompt Run a Program at the Windows Command Prompt: 2 Ways
Change Process Priorities in Windows Task ManagerChanging Process Priorities Temporarily & Permanently
Restart Windows Explorer Without Rebooting Computer Restart Windows Explorer Without Rebooting Computer
Turn Off a Personal ComputerTurn Off a Personal Computer
Advertisement

About This Article

Hannah Dillon
Co-authored by:
wikiHow Technology Writer
This article was co-authored by wikiHow staff writer, Hannah Dillon. Hannah Dillon is a Technology Writer and Editor at wikiHow. She graduated with a B.A. in Journalism from North Dakota State University in 2013 and has since worked in the video game industry as well as a few newspapers. From a young age Hannah has cultivated a love for writing and technology, and hopes to use these passions in tandem to help others in the articles she writes for wikiHow. This article has been viewed 102,730 times.
How helpful is this?
Co-authors: 10
Updated: September 24, 2025
Views: 102,730
Categories: Windows
Thanks to all authors for creating a page that has been read 102,730 times.

Is this article up to date?

Advertisement