Kill windows service that is not responding/hungs

1) Query the service PID via NT service controller.

sc queryex <servicename>
eg.
sc queryex w32time
Note: you can find the service name from services.msc in Run box. Here w32time for Windows Time Service.

 

2) Note the PID of the service

3) kill the process by PID.
tskill <PID>

This entry was posted in Windows. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *