Kill Tasks from Command Prompt
Recently, my friend’s computer was attacked by a virus and his task manager stopped working. The Task Manager was opening, but it wasn’t showing any processes running at all. So to fixed that, I went through many websites and looked for number of Task Manager alternatives.
While searching, I came across a very interesting Windows XP/Command Prpmpt trick (don’t remember the site). You could actually view and kill processes from Command Prompt if your Windows Task Manager stops working for some reason.
Kill Tasks in Command Prompt
To kill the tasks from the Command Prompt, open Command Prompt by navigating to Start > All Programs > Accessories and select Command Prompt. Alternatively Command Prompt can be opened by typing cmd in Run. After you open Command Prompt, type “tasklist” (without the quotes) for a list of all the running processes. A list will be shown, and following every process name you could see a number, something like 1288. This is the PID number. You will need this to kill the task.
After looking for the process to kill, note down it’s PID number (process code) and type “tskill PID Number” without the quotes in Command Prompt. Of course, PID number should be replaced by the actual code. So the command becomes something like this: tskill 1288
That’s it. The process will be killed!
I hope you enjoyed this trick and thanks for reading this.
Author: Haris NadeemHe is the founder of Sizzled Core and a Pakistani blogger who loves gadgets and exploring out the web!


10 Comments
Ashok Arora
Nice tip, I also encountered similar problem few days ago, but my command prompt was also disabled
Aug 22nd, 2007
Vaibhav
Cant this be a case because of Viruses and trojans??
Aug 22nd, 2007
Haris
Yeah, the most common reason for such problems is viruses and trojans. And the latest virus that is nowdays circulating an many PCs is the New Folder virus. It disables your Task Manager, and you can’t even stop its process.
Aug 22nd, 2007
Madhur Kapoor
cool tip buddy . never knew this
Aug 22nd, 2007
Haris
@Madhur: I’m glad you liked it :)
Aug 22nd, 2007
shaun
Sweet thanks for the info.
Aug 22nd, 2007
kishore
That is a nice trick in Windows… Does it work in Vista too
Aug 23rd, 2007
Vaibhav
Informative one, will be useful some day :)
Aug 24th, 2007
123
this does not work in vista, does anone know a vista way of doing this?
Feb 9th, 2008
Anil Veluri
Its Good. But do you know how to hard kill all the tasks running on a Server Computer which is processing several requests from different client computers.
Jul 17th, 2008
Leave a Reply