Posts Tagged ‘Finding Out Why a Service Won’t Start’
2003 server - Thursday, February 28, 2008 4:14 - 0 Comments
Finding Out Why a Service Won’t Start
How to display service exit codes.
If you want to know whether a particular Windows service started successfully when your machine booted up, you can use the sc query command to do this. Simply run the command sc query service_name and look for the WIN32_EXIT_CODE field in the output of the command. If this field is zero then the service started properly, and if the service didn’t start properly then WIN32_EXIT_CODE will display a non-zero exit code specific to the service.
For example, when I run the command sc query vss to query the status of the Volume Shadow Copy service on a Windows Server 2003 machine, the WIN32_EXIT_CODE value returned is 1077 (0x435). To find out what this exit code means, you can type net helpmsg 1077, and the result of doing this is “No attempts to start the service have been made since the last boot.” This likely indicates that the Startup Type for this service is Manual i.e. the service isn’t set to start automatically upon reboot.
Article written by MyComputerAid.com