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 KSystem 4 Services 0 828 Ksmss.exe 276 Services 0 608 K.... csrss.exe 384 Services 0 3,432 Kservices.exe 508 Services 0 7,604 Kwinlogon.exe 516 Console 1 4,072 Klsass.exe 552 Services 0 9,824 Ksvchost.exe 672 Services 0 6,472 Knotepad.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
Maheshkumar S Tiwari edited Original. Comment: Added Tag