Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
There are times where you will need to check remote processes and sometimes even end them without having to log on to the remote machine.
To list processes running on a remote machine run the following:
C:\> tasklist /S [computer name] /U domain\username
Image Name PID Session Name Session# Mem Usage
=============== ==== =========== =========== ============
System Idle Process 0 Services 0 24 K
System 4 Services 0 828 K
smss.exe 276 Services 0 608 K
.
.
.
.
csrss.exe 384 Services 0 3,432 K
services.exe 508 Services 0 7,604 K
winlogon.exe 516 Console 1 4,072 K
lsass.exe 552 Services 0 9,824 K
svchost.exe 672 Services 0 6,472 K
notepad.exe 6676 Console 1 6,628 K
Now with the command taskkill, we can remotely terminate a command:
By Image name (process name):
C:\> taskkill /S [computer name] /IM notepad.exe
By PID (from above) :
C:\> taskkill /S [computer name] /PID 6676