Killare un servizio in pending

Recuperare il PID del servizio:

sc queryex “nome.del.servizio” – l’output sarà simile a questo:
SERVICE_NAME: nome.del.servizio
TYPE               : 10  WIN32_OWN_PROCESS
STATE              : 3  STOP_PENDING
(NOT_STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
WIN32_EXIT_CODE    : 0  (0x0)
SERVICE_EXIT_CODE  : 0  (0x0)
CHECKPOINT         : 0x3
WAIT_HINT          : 0x7530
PID                : Xxxx
FLAGS              :

eseguire:

taskkill /PID Xxxx /F

🙂

 

Liked this post? Follow this blog to get more. 

Rispondi