Killing a stuck Windows Service
Hi
I guess all of us met the phenomenon when a service refuses to stop and stuck on ”Stopping” status.
well, there is a remedy to this by following this short procedure:
1. Identify the PID of the rogue service. open cmd and type: sc queryex
you will receive a long list of available services. you can also type sc queryex > c:\ServiceList.txt to send the output to a text file.
2. search the list of services for the problematic service:
SERVICE_NAME: Spooler
DISPLAY_NAME: Print Spooler
TYPE : 110 WIN32_OWN_PROCESS (interactive)
STATE : 3 STOP_PENDING
(STOPPABLE,NOT_PAUSABLE,ACCEPTS_SHUTDOWN)
WIN32_EXIT_CODE : 0 (0×0)
SERVICE_EXIT_CODE : 0 (0×0)
CHECKPOINT : 0×0
WAIT_HINT : 0×0
PID : 1800
FLAGS :
After you identified the service on the SERVICE_NAME line, notice the PID. you will need this number.
3. Using taskkill command, you can kill the rogue service now by typing: taskkill /PID 1800 /F
C:\>taskkill /PID 1800 /F
SUCCESS: The process with PID 1800 has been terminated.








