Windows 7 Forums


Windows 7: Task Management


Task Management

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

Featured Tutorial

User Profiles - Create and Move During Windows 7 Installation
User Profiles - Create and Move During Windows 7 Installation

How to Create User Accounts on another Partition or Disk During Windows 7 Installation

Clean Up Factory Bloatware
Clean Up Factory Bloatware



Peppermint3 - Create Live CD/DVD/USB To Use For Emergency Backup
Peppermint3 - Create Live CD/DVD/USB To Use For Emergency Backup

How to Perform an Emergency Data Backup When Windows 7 Will Not Boot

System Preparation Tool - Use to Customize Windows
System Preparation Tool - Use to Customize Windows

How to Use Sysprep to Customize Windows 7 and Windows 8

Microsoft Account "Two-step Verification" - Turn On or Off
Microsoft Account "Two-step Verification" - Turn On or Off

How to Turn "Two-step Verification" On or Off for your Microsoft Account

Portable OS - Carry your OS on an External Drive
Portable OS - Carry your OS on an External Drive

How to Create a Portable OS on an External Drive
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.


Need more help? Try searching our extensive help and support site.
Loading
29 Aug 2009   #1
iseeuu

 
 

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

Robert

My System SpecsSystem Spec

29 Aug 2009   #2
Brink

64-bit Windows 7 Ultimate SP1 & Windows 8 Enterprise
Texas
 
 

Hello Robert,

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

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

Windows 7 Pro x64
England
 
 

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


17 Oct 2009   #4
Barman58

Windows 7 Ultimate x64 + x86 + Windows 8 x64
Newport, South Wales, UK
 
 

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 help and support threads for: Task Management
Windows 7 Tutorial Category
Task Scheduler - Create Task to Display a Message Reminder Tutorials
Need help creating a task scheduler task to move files over a network. General Discussion
Task scheduler unable to load task status/active tasks at startup. Performance & Maintenance
Solved Mutliple Outlook 2003 instance in task tray and task manager Microsoft Office
Solved Task Scheduler failing to start task with merged network locations General Discussion


All times are GMT -5. The time now is 07:19 AM.


Seven Forums Android App Seven Forums IOS App Follow us on Facebook

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 31 32