Problem Stopping a Windows Service
July 22nd, 2008Below is a method you can use to stop a Windows service, even a stubborn
service which seems to hang.
I have tried this in Windows XP and on Windows Server 2003, and it always
successfully kills the problem service.
- Open command prompt (’Start’ - ‘run’ - ‘cmd’ - ‘Ok’)
- run ’sc query’
- find the service which is causing the problem
— note the Service_Name rather than Display_Name
- run ’sc queryex SERVICE_NAME’
— this will give extended details about the service, including the PID.
- run ‘taskkill /PID *PID* /F’ (where *PID* is the PID Number obtained
in the previous step)
That procedure should allow you to find and kill the problematic service,
getting rid of the stuck/hanging service without the need to reboot.
