Remotely Kill Process on a Windows Server

Ran into a problem today where I needed to kill a process on a server that I didn’t have remote KVM access to and couldn’t RDP into. This particular machine had only VNC and the VNC service was hung. 

Windows Server includes two commands tasklist and taskkill that allow you to remotely list the processes running on a machine and then kill these processes.

Viewing Tasks on Remote Computer

To view the processes just use the command:

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

Killing Tasks on Remote Computer

Once you have the PID of a process you can execute

taskkill.exe /S SYSTEM /U USERNAME /P PASSWORD /PID PID_NUMBER

I found this great tool by googling it and finding the watching the net blog article on it, there’s more information on their blog (along with a ton of google adsense ads..). 

author avatar
Jess
With a background in web development and web server administration dating back to 1994, Jess Coburn founded Applied Innovations in 1999. As CEO, he led the company to become a recognized leader in Windows Hosting, specializing in ASP.NET, E-Commerce, and advanced web application hosting. Under Jess's leadership, Applied Innovations became known for making cutting-edge technology accessible and affordable for businesses. Building on this success, Jess expanded his vision by founding QIT Solutions, a managed cloud, IT, and cybersecurity company, where he continues to leverage his extensive industry experience to deliver innovative and secure IT solutions to businesses.

Leave a Comment

Scroll to Top