Killing a Windows service stuck in the STOP_PENDING state
Aug 8 2011 ยท Random
I ran into this issue when I attempted to restart the Windows Audio Endpoint Builder service under Windows Server 2008 R2. Thankfully I didn’t have to restart, as I found the solution here.
-
Query the service to find the process id
C:\Windows\system32>sc queryex AudioEndpointBuilder SERVICE_NAME: AudioEndpointBuilder
TYPE : 20 WIN32_SHARE_PROCESS
STATE : 3 STOP_PENDING
(NOT_STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
WIN32_EXIT_CODE : 0 (0x0)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0xbc
WAIT_HINT : 0x1388
PID : 1008
FLAGS :
-
Use Task Manager or taskkill to kill the process (/F flag is to force the kill, try without first).
C:\Windows\system32>taskkill /PID 1008 /F
SUCCESS: The process with PID 1008 has been terminated.