Use Windows Taskkill to kill all instances of a program instantly

By | September 13, 2012

Have you ever had an application that is not running well and you look in Task Manager and find that there are 7 or 8 instances running? You can, if you want, right-click each one – one at a time – and choose “End process” or “End process tree” and then click off the Windows warning about making that program unstable.

There’s a faster way. If you know the name of the program’s exe do this:

Press the Windows Key + R key and type CMD in the run dialog. Now press Enter. In the command dialog, at the prompt, type:

TASKKILL /IM chrome.exe /F and press Enter

See?

Cloudeight Internet

All instances of Chrome running on my computer we’re killed without a whimper from Chrome. And gee! I wasn’t having any problems with Chrome either…but it’s dead now. It’s okay – I can open Chrome up again and all I will get is a little notice that Chrome didn’t shut down correctly. Really? 🙂

The above command will kill all instance of Google Chrome in less than 1 second. Substitute the name of the program whose process you want to kill where I have chrome.exe it the example above. For instance:

TASKKILL /IM iexplore.exe /F will kill all instances of Internet Explorer

TASKKILL /IM firefox.exe /F will kill all instances of Firefox

As long as you know the program’s exe file name you can kill all instances of any program using this command.

One more thing. The spaces here are critical. There’s a space after TASKKILL and before the /. There’s a space after exe and the /F . if you don’t do the spaces right — you don’t get your reward.:-)

7 thoughts on “Use Windows Taskkill to kill all instances of a program instantly

  1. Bob

    I used to have fun creating batch files for little things like this (back in the good ol’ days… well, old days anywho ). Does Windows 7 (and I might as well include 8) accept batch files?

    Reply
  2. wschloss

    Thanks for this. Is there a way to kill Chrome WITHOUT being re-prompted when next launched? I.e. without having to use Chrome start switches, and without re-launching from a batch file?
    Thanks again.

    Reply
    1. infoave Post author

      Yes, exit the program properly. Is that a problem. I find it easier to exit programs properly than write batch files to kill tasks. Have you been drinking?

      Reply
  3. Aditya

    Hi! is there a way to find out if there are any open chrome processes from the command line before killing them?

    Reply
    1. abc

      Yes you can, go to cmd and write “tasklist” on cmd, it will list for you all the tasks running on your computer , if you want to display only the chrome processes then write “tasklist | findstr chrome.exe” without the quotation marks obviously.

      Reply

Leave a Reply

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