Friday, November 6, 2015

How to kill a windows services that hangs on "starting" or "stopping"

To kill a Windows process that hasn't started correctly you need to use the terminal.

1) Get the name of the service from the services window (run "services.msc", select your service and then with a right click get the services name)

2) In a command prompt enter:

sc queryex <servicename>

where <servicename> is what you got at step 1)

3)  Get the <PID> from the output of  step 2) and use it in the command:



taskkill /f /pid <PID>


Source:
http://www.examiner.com/list/how-to-kill-a-windows-service-that-s-stuck-on-stopping-or-starting

No comments:

Post a Comment

Your comment will be visible after approval.