Tuesday 2 February 2016

Kill a service that is stuck in 'Starting' or 'Stopping' state

Sometimes a service will use an instance of svchost to run it (for example Windows Update, Windows Time etc.) and hence might be unclear as to which process should be killed.

We should firstly identify which PID is associated with the service e.g.:
sc queryex wuauserv
and then kill the PID with something like:
taskkill /F /PID:<service-pid>


Post a Comment