How to remotely kill processes on a server

Ok, I have had to do this a number of times in situations where I cannot RDP to one of my Windows server for some odd reason and I need to kill a task or a process that is hung or in a stopping state on a remote server.

Its fairly simple when you know the commands and this is how its done. Log on to any server on your network and open up the command prompt.

Run a remote tasklist command to get a list of running tasks/processes on the remote server

tasklist /s servername 

OR

If you want to see the PID for a service launched as SvcHost you can write

tasklist /s servername /svc

Once you have identified the process you want to kill or stop, you can issue the below command.

taskkill /s servername /pid <number> /f

-Alstar