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:
DISPLAY_NAME: Print Spooler
TYPE : 110 WIN32_OWN_PROCESS (interactive)
STATE : 3 STOP_PENDING
WIN32_EXIT_CODE : 0 (0x0)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x0
PID : 1800
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.