Thursday, April 5, 2012

Windows Server; A Service is Hung at Starting or Stopping State.

Sponsored Links

A Windows Server service can be hung due to many reasons, its status will be 'Starting' or 'Stopping' state, and you wont be able to restart the service as most option at GUI mode might have greyed out.You can use 'TaskKill' utility to fix this issue.

Below is an example on how to fix Service hung issue:

Find out the actual process name of the Service which is hung. 

This can be done by taking properties of the service:

As seen in the below picture, the actual service name will be 'VMAuthdService'.


Now, type below command in the CMD:

taskkill /F /FI "SERVICES eq VMAuthdService"

This command will terminate the VMAuthdService. And now you can start the service again using NET START Command:

C:\Windows\system32>net start VMAuthdService
The VMware Authorization Service service is starting.
The VMware Authorization Service service was started successfully.

Here is the explanation of the switches that we used with TASKKILL utility:

/F                     Specifies to forcefully terminate the process(es).
/FI   filter           Applies a filter to select a set of tasks.
                       Allows "*" to be used. ex. imagename eq acme*

In addition to this, you can find out the process related to the service using 'TASKLIST' command and kill the particular process. But you should know the process name.

Hope this helped you.

blog comments powered by Disqus
Related Posts Plugin for WordPress, Blogger...