Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1
    knightrider™'s Avatar
    knightrider™ is offline Gold Member
    Join Date
    Jul 2008
    Location
    India
    Posts
    754

    Default Kill Processes using Command Prompt in Windows 7 | 8

    If your Task Manager gets stuck or unresponsive due to intensive apps and you are not able to kill the particular process. What do you do ? You press ctrl-alt-delete to open up the Task Manager and find the culprit. But you can kill also multiple processes using command prompt in Windows 7.

    Kill Processes using Command Prompt in Windows 7 | 8

    For this we use the Tasklist and Taskview commands.

    Open the Command Prompt in the Administrative privileges mode and run the Tasklist command, it will show you a list of all the running processes.



    To views the processes, type Taskview and hit Enter.

    To kill any particular process use the Taskkill command. For example to kill Chrome, run the command as:

    Taskkill /IM chrome.exe /F

    where /F is used to kill the process forcefully. You can also kill any particular process by using it’s ID, the tasklist command displays the process ID’s as well (you can see the PID column in the screenshot). To kill any process using it’s ID, run the command as:

    Taskkill /PID 2704 /F

    Now to kill multiple processes simultaneously, run the above command with the PID’s of all the processes followed by spaces

    Taskkill /PID 2704 5472 4344 /F

    That's it!
    Last edited by knightrider™; 11-17-2009 at 10:25 AM.

  2. #2
    leofelix is offline Member
    Join Date
    Oct 2008
    Location
    Italy
    Posts
    1,672

    Default

    Excellent, no doubt!

    Thank you

  3. #3
    knightrider™'s Avatar
    knightrider™ is offline Gold Member
    Join Date
    Jul 2008
    Location
    India
    Posts
    754

    Default

    thanks leo i ll post some if i get time

  4. #4
    whs's Avatar
    whs
    whs is offline Gold Member
    Join Date
    Oct 2008
    Posts
    1,352

    Default

    I think that works in Vista too. All the commands are there.

  5. #5
    seti is offline Member
    Join Date
    Nov 2008
    Posts
    1,924

    Default

    Quote Originally Posted by whs View Post
    I think that works in Vista too. All the commands are there.
    Yes it does my friend

  6. #6
    pamarths is offline Beginner
    Join Date
    Nov 2009
    Location
    Hyderabad, India
    Posts
    14

    Default

    Taskkill is powerfull.

    I just want to give a situation where taskkill is not right choice. If you have multiple MMCs(dsa.msc, adsiedit.msc, and few other) running on PC and if you want to kill only dsa.msc(Active Directory Users and Computers), then taskkill is not your choice. The reason is it all MMC applications runs with same process name mmc.exe(args are different).

    If you are in such a situations, the below can help you.

    Get-Process | where {$_.mainwindowtitle -match "active directory users and computers"} | stop-process

    Sitaram's Blog: Get process details using window title:

    Thanks,
    Sitaram Pamarthi

  7. #7
    arvind_kumar's Avatar
    arvind_kumar is offline Senior Member
    Join Date
    Jul 2008
    Location
    Jaipur
    Posts
    200

    Default

    Here is a detailed description already on TheWindowsClub

  8. #8
    zen67's Avatar
    zen67 is offline Senior Member
    Join Date
    Feb 2009
    Location
    Italy - Florence/Venice
    Posts
    179

    Default

    nice tip knightrider™ tnx

  9. #9
    grummel is offline New Member
    Join Date
    Jan 2011
    Posts
    1

    Default

    Quote Originally Posted by knightrider™ View Post
    Taskkill /IM firefox.exe /F
    Thank you, you just saved a lot of unsafed data.

    One addition:

    Miranda was not only locking the taskmanager and explorer but also the command prompt.

    Lucky as I am I'm using Launchy, which can also pass commands to cmd. :-)

    "cmd [Tab] Taskkill /IM miranda32.exe /F" did the trick.

    Thanks again!

  10. #10
    neil877's Avatar
    neil877 is offline New Member
    Join Date
    Jan 2011
    Posts
    1

    Default

    Thank you for tasklist command. It's a nice tip.

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19