How to Stop a Stuck Service
January 26, 2024
In this example, we'll use the Cablecast service as an example, but this can be theoretically applied to any Service stuck in starting.
- Open Command Prompt as Admin
![](https://cdn.sanity.io/images/la244s84/production/fdb02e8d979591285f15567d3de495c75652f31f-854x764.png)
- Run the command
sc queryex "Cablecast"
and hit enter
![](https://cdn.sanity.io/images/la244s84/production/04b5cf32bd4704798f727c5543c1ed2e8f1ef623-637x234.png)
- Look for the PID field and note the number below for the next step. It will be different in your case from the image provided
![](https://cdn.sanity.io/images/la244s84/production/4fb6e38eb281d75bba46c9f16e7e973b3eac975e-976x519.png)
- Use the PID found in the previous command and execute the following command and replace {pid} with the one you found
taskkill /pid {pid} /f
- You should get the following command that it was successful
![](https://cdn.sanity.io/images/la244s84/production/76ba316e085595eae705a996b3a222386facdffd-973x511.png)