Sometimes after a reboot you will want certain services to start before others. Windows allows you to create dependencies to take care of this. This does require a registry change so if you are not familiar with editing the registry, make sure to run a backup first.

1. Open the registry editor:
Start -> Run -> regedit

2. Navigate to the specific service you are trying to delay:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\

3. If there is a “DependOnService” value, simply modify it and add the service you want to start before the one you are editing in the registry.

If no “DependOnService” value exists create one:
Right click service name -> New -> Multi-string value
Enter the name DependOnService then modify this new record and add the service you want to start before the one you are editing.

To verify you have the right service name to enter open up Services, right click the service in question, and choose properties. Use the Service name and not the Display name. For instance the IIS Admin Service name is “IISADMIN”.

4. The server will require a restart to apply the change. Once restarted you can open Services, right click the service you edited, choose properties, then the Dependencies tab and you will see the change.

4 Responses to “How to Create a Windows Service Dependency (Server 2003/2008)”

Leave a Reply