Not all the services you will be able to kill from Task Manager. Some services still run even though if you uninstall or disable them
A hanged service looks like the below screenshot example (as you can see below, all Start/Stop/Pause/Resume buttons are disabled):
To kill this service, first note the service name. On the screenshot above, it is ‘Business View Manager’ (ie: the first thing displayed in the “General” tab).
Then, open a command Prompt and run the ‘sc queryex’ command to retrieve the service PID, then use the ‘taskkill’ command to… well, kill it ! (as below)
C:\>sc queryex Business View Manager SERVICE_NAME: Business View Manager TYPE : 10 WIN32_OWN_PROCESS STATE : 2 START_PENDING (NOT_STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)) WIN32_EXIT_CODE : 0 (0x0) SERVICE_EXIT_CODE : 0 (0x0) CHECKPOINT : 0x1 WAIT_HINT : 0xbb8 PID : 3756 FLAGS : C:\>taskkill /PID 3756 /F
SUCCESS: The process with PID 3756 has been terminated.
Note: Be careful of what you are killing though. If you kill a critical windows service you may end up forcing the machine to reboot on it own. |
No comments:
Post a Comment