Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Task Management

Task Management

How to Kill Wayward Programs and Processes
Published by swarfega
28 Aug 2009
Published by

Task Management

information   Information
This tutorial will show you how to quickly and easily kill wayward programs and processes that have stopped working or not functioning as expected.

Note   Note
The command line will be used throughout this tutorial.

Sometimes it is necessary to close programs and tasks by brute-force as they have stopped responding or not functioning as expected. In these cases the usual methods of closing a program wont work. Often the programs start sucking resources from the OS and thereby become unresponsive.

For these occasions this method is a handy quick way to get the program resolved.

1. Start the command prompt by typing cmd in the start menu search bar and press enter

2. With cmd running you can get a list of running applications and tasks by typing tasklist in the cmd window.

Task Management-tm1.jpg

3. We are mostly interested in the PID (Process ID number) column. Every running program or task has a unique PID associated with it. This allows for easy task management For instance there may be a couple of instances of the same program running with the same name but using different PIDs thereby making it harder to kill the process using its name.

4. So with the list of tasks we can now begin to take action. In this example lets imagine that Messenger has become unresponsive and we need to kill it.

To kill the process you use the command taskkill. So to kill messenger in this case you use:

taskkill /PID 3836

Task Management-tm2.jpg

As you will see, you will get notification of success or failure to kill the task. The offending program or task also disappears from the desktop.

Note   Note
You could also type taskkill /IM msnmsgr.exe which would have the same affect. But of course if you have two processes with the same name, the PID method would be preferred.
29 Aug 2009   #1


Nice tutorial, nice utility. Anything to make it easier!


My System SpecsSystem Spec
29 Aug 2009   #2

64-bit Windows 10 Pro

Hello Robert,

You could also use Task Manager to kill the applications and processes as well.

Hope this helps,
My System SpecsSystem Spec
17 Oct 2009   #3

Windows 7 Pro x64

thansk brink, im learning alot of tips here.
My System SpecsSystem Spec

17 Oct 2009   #4

Windows 10 Pro x64 x3, Ubuntu

As a related item this may be of interest to those who work on other peoples machines, ( well our machines would never get into a bad state would they ), It's a bat file to close all non essential processes in one go ...

Kill All Running Apps .BAT – Repair Tool of the Week | Technibble

The title pretty much says it all. This .BAT file will kill all currently running apps on a system that the user started with the exception of a few locked Windows processes and some antivirus products. This comes in handy when you are working on a system that has too many processes running and thus slowing it down; often to the point where its difficult to do any work on it.

Being a BAT file, this script is obviously highly customizable. It works on a “if the process is not in this list, then kill it” system; so you can add processes to the list that you do not to be killed such as the menu for your USB drive applications or Firefox.
My System SpecsSystem Spec
06 Aug 2013   #5
Microsoft MVP

Vista, Windows7, Mint Mate, Zorin, Windows 8

Quote   Quote: Originally Posted by Brink View Post
Hello Robert,

You could also use Task Manager to kill the applications and processes as well.

Hope this helps,
That's how I usually do it. Just make sure you click on 'Show processes from all users'.

Attached Thumbnails
Task Management-2013-08-06_1200.png  
My System SpecsSystem Spec

 Task Management

Thread Tools

Similar help and support threads
Thread Forum
Need help creating a task scheduler task to move files over a network.
Hello everyone, I need to have a task run that will move the contents of a folder from one computer to another over my home LAN. Files get downloaded during the night on one computer and then need to be transfered to another. Usually I am doing this by hand, but then though maybe I could get...
General Discussion
Task Scheduler - Create Task to Display a Message Reminder
How to Display a Message Reminder in Windows with Task Scheduler This will show you how to create yourself, or another user or group, a message reminder scheduled to display for when and how often you like in Windows 7 or Vista using Task Scheduler. All users on the computer will be able to...
Task scheduler unable to load task status/active tasks at startup.
My task manager is unable to load task status/active tasks at startup. I get the message: "The selected task "{0}" no longer exists. To see the current tasks, click Refresh." When I refresh I get the same message. I checked and found that under Microsoft the problem was in the defrag...
Performance & Maintenance
Mutliple Outlook 2003 instance in task tray and task manager
Every now and then I look down at the task tray ...and whoa!!!! about a dozen instances of Outlook. See attached What is causing this? And how do I prevent it??
Microsoft Office
Task Scheduler failing to start task with merged network locations
I have two routers I usually connect to (work and home) and each have wireless access. That means there are essentially 4 network locations I have listed. I have merged each respective network location (wired and wireless) into their own singular network location - "Work" and "Home". I also...
General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 12:06.
Twitter Facebook Google+