How to check and kill a remote windows process through the command line

How to check and kill a remote windows process through the command line

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
Leave a Comment
  • Please add 8 and 3 and type the answer here:
  • Post
Wiki - Revision Comment List(Revision Comment)
Sort by: Published Date | Most Recent | Most Useful
Comments
  • Maheshkumar S Tiwari edited Original. Comment: Added Tag

Page 1 of 1 (1 items)
Wikis - Comment List
Sort by: Published Date | Most Recent | Most Useful
Posting comments is temporarily disabled until 10:00am PST on Saturday, December 14th. Thank you for your patience.
Comments
  • Maheshkumar S Tiwari edited Original. Comment: Added Tag

Page 1 of 1 (1 items)