Sometimes if you restart or stop a Windows service it wont stop. The Windows Service is stuck in the “stopping” state. If you cannot reboot your server or workstation for whatever reason you can kill the task using taskkill.exe.
First, open CMD (command prompt) as Administrator.
Then query the process ID (pid) using:
1 |
sc queryex servicename |
Look for the PID.
Then
1 |
taskkill /f /pid PIDNR |
Or using PowerShell with a force command:
1 |
get-service | where{$_.status -match "stopping"} | stop-service -Force |