Stop hung service (stopping or starting status) without server reboot

Here is a solution to stop an hung service without server reboot. Here an hung service is a service in stopping or starting status.

Step 1 : find the PID of the service using any way:

  1. Task manager
  2. sc queryex servicename
  3. tasklist /svc | findstr /i servicename
Step 2: Kill the service by it's PID with taskkill /f command, syntax below:

taskkill /f /pid pidoftheservice

example:
taskkill /f /pid 2320

This works for many cases :)

Comments

Popular posts from this blog

vRA/vRO workflows

How to generate HPS Report for Windows