News, Product Information, and Tips
Check out our free utlities in the downloads section

Remote Administration



Remote Administration For Windows. Easy remote access of Windows 7, XP, 2008, 2000, and Vista Computers

Click here to find out more

Create Outlook Profiles



No more setup wizards in Outlook. Setup Outlook Profiles automatically from the command line

Click here to find out more

Network Administrator



Reboot Hundreds of computers, disable flash drives, deploy power managements settings.

Click here to get your free copy of Network Administrator. Over 25 plugins to make your life easier

USB Disabler



Disable Flash Drives for specific users, or only allow specific drives.

Click here for your free trial

Search

Archives

Find failed services

by Steve Wiseman on August 22, 2007 · 0 comments

in Windows

One of the things I hate to see when booting up a system is that a service failed to start.

Service Failed To Start

This usually means combing through the event viewer to identify the service that failed. It can be annoying because of the time you need to spend looking through unrelated events.

I wanted a way to speed up this process since I see this problem frequently in the field.

Too Many Events

One of the tricks I use is to open service manager and sort by start type. Then I look through all of the services that are set to automatic…and make sure they are started.

I wanted to get this same information as fast as possible, so I created a script that will go through all services on a system and spit out the ones that are set to automatic and have not started.

You need to run it from the command line, and use the cscript.exe engine to execute it…like this:

cscript.exe ListFailedServices.vbs
(Download the script here)

Lets look at the output from one of my problem systems:

Failed Service List

Notice that there are a few services here. Sometimes it is normal…yes normal that a service will start automatically and then stop. After you use this script for a while you will instinctively know what Microsoft (And others) services do this.

In this case I know right away that McAfee is having trouble. It should not stop…so now I can start getting to business and figure out why it didn’t start.

The script is not perfect. Sometimes manual services are started by other services at startup, and those will not show up with the script. Still – it is another tool that will help you save time when diagnosing a problem.

Like this article? Then sign up for my newsletter to get free tips and software sent right to your inbox once a week. Like you, I hate spam – I will never spam, or sell your email address.

Related Articles:

Leave a Comment

Category Links - Windows Forum - Exchange Forum