Syed Jahanzaib Personal Blog to Share Knowledge !

February 28, 2012

Howto View and Kill Tasks on Local/Remote PC


TASKLIST / TASKKILL  on  LOCAL PC

To view Tasks on Local PC.

tasklist

you will see running tasks and there PID
As shown in the image below
. . .

To kill any task on Local PC.

taskkill /F /IM notepad.exe

To kill multiple task on Local PC.

taskkill /F /IM notepad.exe /IM mspaint.exe

To kill task by PID on Local PC. First find out PID of your program by running
tasklist

then note down the PID, its the numeric number written just after application name, for example
notepad.exe                 5768 Console                 0      3,644 K
so 5768 is the PID number, to kill it by PID number, use the following

taskkill /F /PID 4556

TASKLIST / TASKKILL  on  REMOTE PC

To view Running Tasks on Remote PC.

tasklist /s remote_comp_name
(or ip

To kill any task on Local PC.

taskkill /F /S COMP_NAME /IM notepad.exe

To kill task by PID on Local PC. First find out PID of your program by running

tasklist /s remote_comp_name
(or ip
then note down the PID, its the numeric number written just after application name, for example
notepad.exe                 3624  Console                 0      3,644 K
so 3624 is the PID number, to kill it by PID number, use the following

taskkill /F /S COMP_NAME /PID 3624

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: