Finding Out Why a Service Won’t Start


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.

Mitch Tulloch is President of MTIT Enterprises, an IT content development company based in Winnipeg, Canada. Prior to starting his own company in 1998, Mitch worked as a Microsoft Certified Trainer (MCT) for Productivity Point International. Mitch is a widely recognized expert on Windows administration, networking and security and has written 14 books and over a hundred articles on various topics. He has been repeatedly awarded Most Valuable Professional (MVP) status by Microsoft for his outstanding contributions in supporting users who deploy Microsoft platforms, products and solutions. Mitch is also a professor at Jones International University (JIU) where he teaches graduate-level courses in Information Security Management (ISM) for their Masters of Business Administration (MBA) program. For more information see http://www.mtit.com.

About The Author

2 thoughts on “Finding Out Why a Service Won’t Start”

  1. Try again and again…but not start…it say same error..Windows some services stop automatically if they are not use by other services or programs. can you help me please.

Leave a Comment

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Scroll to Top