How To View and Kill Processes On Remote Windows Computers

31

vista.jpgWindows provides several methods to view processes remotely on another computer. Terminal Server is one way or you can use the command line utility pslist from Microsoft Sysinternals site. While both options are good alternatives, Windows XP and Vista provides a built in utility for viewing and killing process on remote Computers using Tasklist and Taskkill commands.

Both tasklist.exe and taskkill,exe can be found in %SYSTEMROOT%\System32 (typically C:\Windows\System32) directory.

To view processes on a remote Computer in your home, you will need to know the username and password on the Computer you want to view the processes. Once you have the user account information, the syntax for using tasklist follows:

tasklist.exe /S SYSTEM /U USERNAME /P PASSWORD

(To view all tasklist options, type tasklist /? at the command prompt)

To execute, click on Start \ Run… and in the run window type cmd to open a command prompt. Then type the tasklist command, substituting SYSTEM for the remote computer you want to view processes, USERNAME and PASSWORD with an account/password on the remote Computer.

(NOTE: if you are in a Domain environment and have Administrator rights to the remote Computer, you will may not need to specify a Username and Password)

tlist2.png

Now if there was a process that needed to be killed, you can use the taskill command. As with tasklist, you will also need the Username and Passoword on the remote Computer. The syntax for using taskkill is

taskkill.exe/S SYSTEM /U USERNAME /P PASSWORD /IM PROCESS

(To view all taskkill options, type tasklll /? at the command prompt)

Where SYSTEM, USERNAME, PASSWORD is the same as above for the tasklist command, and IM is the process image name you want to kill. In the above screen shot we will kill firefox.exe by typing the following at the command prompt:

taskkill.exe /S wtn1 /U joe /P ddd1234 /IM firefox.exe
SUCCESS: The process "firefox.exe" with PID 196 has been terminated

You can also kill a process using the PID (Process ID) of the process. In the above example the PID for firefox.exe is 196:

taskkill.exe /S wtn1 /U joe /P ddd1234 /PID 196

If the process does not terminate, you can use /F to forcefully terminate the process.

taskkill.exe /S wtn1 /U joe /P ddd1234 /PID 196 /F

Comments on How To View and Kill Processes On Remote Windows Computers Leave a Comment

November 28, 2007

Boniface @ 1:21 am #

thanks for this tip. However, I have tried both listing and killing a process on a computer on the network without success. It returns the message, "The RPC Server is unavailable". I typed tasklist.exe /S computername /U username /P password.
Please let me know whwer i am wrong.

February 17, 2008

John @ 11:54 am #

I can do this however when i type in the domain and password it connects and then requests a password again even though the aaccount I am trying to access has no password.

Why is this?

March 19, 2008

jman_va @ 2:04 pm #

Without turning off the built-in firewall, how (which TCP&UDP ports) do you open it to allow the remote access. I have fiddled with this to death and cant figure it out. If we turn off Windows Firewall – it WORKS, but when on, no matter what normal RPC/DCOM ports we try, it just wont work (135-139, 445, 1035, 1900, etc)

Getting very frustrated!!!

March 20, 2008
April 13, 2008

Vianick @ 1:59 pm #

Is there any restrinction with XP SP2?? I get an error message:

'TASKLIST is not recognized as an internal or external command, operable program or batch file'

I checked the System32 folder and I do not have any of the files.

Vianick @ 2:22 pm #

Thanks, that was really usefull. Would it be a lot to ask if you have the taskkill too?? Thanks

May 16, 2008

lulu @ 8:04 am #

Thank you big time, I managed to view the process using tasklist /u Ip /username /Pword.
But I can not kill the processes using(/IM process or /PID pid) I do not know what's up. Help plz!
I'm using XP pro. accessing MS Server 2003 remotely.

Regads
LS

September 10, 2008

Lex @ 9:08 pm #

usually you get RPC server unavailable because the computers local security policies dont allow you to connect to the PC… if you have XP PRO [i havnt used any other OS with remote process list /kills or remote shutdown] you need to go to control panel>Administritive tools>local security policy>local policies>find network accesss sharing and security blah blah, double click and change from guests only to classic-users identify themselves… this should work, change this option on both PC's, other than this i cant help you

October 11, 2008

killer @ 8:47 am #

this problem may back to your windows firewall if you using XP sp2. check this link support.moonpoint.com/os/windows/xp/firewall/rpc-server-unavailable

October 23, 2008

Tim @ 1:20 am #

For Vista, tick the following exception in the firewall :
Windows Management Instrumentation (WMI)

December 7, 2008

Raj @ 9:27 pm #

Thanks!

January 24, 2009

som @ 10:43 pm #

Thaks alot!! it works.

February 21, 2009

abydos @ 6:58 pm #

I've tried several types of login:
tasklist /s kenyer /u abydos /p *******
tasklist /s kenyer /u KENYER\abydos /p *******
tasklist /s kenyer /u abydos -> asking for pw: i type it

but always get the message that wrong username or password…
Any idea? (i can log in with remote desktop)

April 20, 2009

joe @ 12:20 am #

very useful! i've make a copy in my blog , hope u don't mind.

May 26, 2009

Rob @ 5:41 am #

Hi There, is there a way to find out what %age of the processor is being used by what process?

Thanks

Rob

June 24, 2009

ARUN @ 11:38 am #

THANK YOU FRO THE INFO…
BUT IS THERE ANY WAY TO DO THIS WITHOUT CHANGING THE FIREWALL SETTINGS FOR THE REMOTE MACHINE

June 27, 2009
July 22, 2009

derek @ 8:23 am #

Thanks. This info really helped me with getting rid of the virus called Symantec at my office. Works like a charm!

July 23, 2009

Constantin @ 5:02 am #

Trying to kill a process using taskkill but getting the following, although I use the /F option.
Any ideas?

Thanks

C:\>taskkill /s gbrpwmw0329094 /f /PID 784
ERROR: The process with PID 784 could not be terminated.
Reason: This is critical system process. Utility cannot end this process.

November 22, 2009

xp owner @ 8:14 pm #

@Watching The Net

i have the invalid user or password error aswell

have xp home on 1 pc, xp pro on the other
downloaded the tasklist & taskkill from here for my xp home pc

I have also tried ur tip:
For example if the domain name or workgroup is ABCD:
/u ABCD\username
Or if the account is local to the system, prefix it with the remote computer name:
/u computername\username
Also, make sure the account you are using has the necessary rights to kill processes on the remote system..

still i got the invalid user/password error

any suggestions? :(

January 16, 2010

Scott @ 5:47 am #

when I try run netstat to check connections i see the bios screen blink up then it dissapears whats the crack there and can someone help please

Jim @ 11:12 pm #

@Scott:

Are you running from a command line? It sounds to me like you are running that command straight from the >start>run box.

Make sure you launch the command prompt first and then run netstat -an to get the port listing.

January 17, 2010

Scott @ 6:16 am #

@Jim: thank u Jim thats exactly what i was doin duh me lol thanks a lot

January 20, 2010

Jason leow @ 6:52 pm #

Thanks this was a really great article. it saved us going to the remote server and doing a hard (ugly) reboot. Thank you so much

February 19, 2010

KEYUR @ 9:43 am #

its just amazing and very helpfull……thanks…….

Leave a Comment

Fields marked by an asterisk (*) are required.

Subscribe without commenting