Page 1 of 1

Forzare chiusura processo Windows - Killing a Windows Service that Hangs on Stopping or Not Responding

Posted: 18 Oct 2020, 14:50
by daniele
ORIGINAL ARTICLE: http://woshub.com/killing-windows-servi ... %20console).

sc queryex wuauserv
In our case the PID of the wuauserv service is 816.
To force stop a hung process with the PID 816, run the command:

taskkill /PID 816 /F


You can stop a hung service more elegantly without checking the service PID manually. The taskkill utility has the /FI option, which allows you to use a filter to select the necessary services or processes. You can shutdown a specific service with the command:

taskkill /F /FI "SERVICES eq wuauserv"

Or you can skip the service name at all and killing all services in a hung state with the command:

taskkill /F /FI "status eq not responding"