How to change service dependencies

i am have problems with a service starting before another service has started.  i would like to add a service to the dependency list in another service.  do i do this through the registry and if so, where?

Who is Participating?
talphiusConnect With a Mentor Commented:
See MS KB #Q193888 -

The Registry subkeys for services are located in the following path and can control how services are loaded.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\<Service name>

To create a new dependency, select the subkey representing the service you want to delay, click Edit, and then click Add Value. Create a new value name "DependOnService" (without the quotation marks) with a data type of REG_MULTI_SZ, and then click OK. When the Data dialog box appears, type the name or names of the services that you prefer to start before this service with one entry for each line, and then click OK.

The name of the service you would enter in the Data dialog box is the exact name of the service as it appears in the registry under the Services key.

When the computer starts, it uses this entry to verify that the service or services listed in this value are started before attempting to start the dependent service.
initialitAuthor Commented:
thanks for the help...that's what i needed.
Ran across this question while trying to figure this out myself and thought I'd add it if anyone else stumbles upon this.  A command-line way to do this these days is with the SC command.


Open in new window

So if you wanted to make "Automatic Updates" dependent on "Background Intelligent Transfer Service" on your local computer you would use:
SC config WUAUServ depend=BITS

Open in new window

All Courses

From novice to tech pro — start learning today.