Windows 7 Forums Search
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows 7. The Windows 7 forum also covers news and updates and has 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
08-28-2009
Default Task Management

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.
Published by
da Cleaner

Join Date: Oct 2008
Posts: 5,199
swarfega has a reputation beyond reputeswarfega has a reputation beyond reputeswarfega has a reputation beyond reputeswarfega has a reputation beyond reputeswarfega has a reputation beyond reputeswarfega has a reputation beyond reputeswarfega has a reputation beyond reputeswarfega has a reputation beyond reputeswarfega has a reputation beyond reputeswarfega has a reputation beyond reputeswarfega has a reputation beyond reputeswarfega has a reputation beyond repute

Tutorial Tools
08-29-2009   #1
iseeuu


7 Home Pre x64, Windows XP Pro, Ubuntu 9.04
 
 


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

Robert

My System SpecsSystem Spec
08-29-2009   #2
Brink


Windows 7 Ultimate x64 SP1
 
 


Hello Robert,

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

Hope this helps,
Shawn
My System SpecsSystem Spec
10-17-2009   #3
JoHn87


Windows 7 Pro x64
 
 


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


10-17-2009   #4
Barman58


Windows 7 Ultimate x64 + x86 + Windows 8 x64
 
 


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

Quote:
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
Comment

Task Management problems?



Tutorial Tools



Similar Threads for: Task Management
Windows 7 Tutorial Category
Solved Mutliple Outlook 2003 instance in task tray and task manager Microsoft Office
Solved simple task scheduler question: changing a task name Performance & Maintenance
Task Scheduler error 2147944309 when I change task from Installation & Setup
Solved Task Scheduler failing to start task with merged network locations General Discussion
Need help creating a task scheduler task to move files over a network. General Discussion


All times are GMT -5. The time now is 06:09 PM.



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
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30