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

Argomenti vari di carattere sistemistico
Post Reply
daniele
Posts: 342
Joined: 04 Mar 2009, 13:59

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

Post 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"
Post Reply