How to Kill a Hung Windows Service

Windows GUI Method to Kill a Hung Windows Service:

  • Start -> Run
  • Type “taskmgr”
  • Click on “Services…” button (this opens services.msc)
  • Right click on the desired service
  • Click on Properties
  • Make note of the Service name:
  • Click on Windows Task Manager to return to the Services tab
  • Right click the Service name you noted earlier
  • Click on Go To Process
  • Click on “End Process” button (Only do this if stopping the service has failed for an extended period of time, and only if you understand the ramifications of killing a service)

Command Line Method to Kill a Service: 

  • Start->Run
  • type “cmd”
  • Hit “Enter” key
  • type “sc queryex [servicename]” (change [servicename] to the noted servicename earlier)
  • Identify the PID (you will be presented with information about the service make note of the PID the service process is using
  • type “taskkill /f /pid [PID]” (change [PID] to the PID you noted earlier.  Only do this if stopping the service has failed for an extended period of time, and only if you understand the ramifications of killing a service )

Resources:

Start, stop, pause, resume, or restart a service http://technet.microsoft.com/en-us/library/cc736564(v=ws.10).aspx

http://community.spiceworks.com/how_to/show/312-stop-a-hung-service

http://windows.microsoft.com/en-us/windows7/open-task-manager

http://windows.microsoft.com/en-us/windows/exit-program-not-responding#1TC=windows-7

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: