Last active
July 11, 2016 08:26
-
-
Save diegobenedicto/0e1f02ae662886d9415cd62e5fde6ad2 to your computer and use it in GitHub Desktop.
Killing a Windows Service that seems to hang on "STOPPING"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) sc queryex <service_name> | |
Example: | |
C:\Windows\system32>sc queryex Tomcat8 | |
NOMBRE_SERVICIO: Tomcat8 | |
TIPO : 10 WIN32_OWN_PROCESS | |
ESTADO : 3 STOP_PENDING | |
(NOT_STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN) | |
CÓD_SALIDA_WIN32 : 0 (0x0) | |
CÓD_SALIDA_SERVICIO: 0 (0x0) | |
PUNTO_COMPROB. : 0x2 | |
INDICACIÓN_INICIO : 0xbb8 | |
PID : 212 | |
MARCAS : | |
2) taskkill /PID <process_id> /F | |
Example: | |
C:\Windows\system32>taskkill /PID 212 /F | |
Correcto: se terminó el proceso con PID 212. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment