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?

thanks-
scott
initialitAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

talphiusCommented:
See MS KB #Q193888 - http://support.microsoft.com/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.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
initialitAuthor Commented:
thanks for the help...that's what i needed.
0
CitizenRonCommented:
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.

sc <\\OPTIONALREMOTESERVERNAME> config <SERVICENAME> depend=<SERVICEITDEPENDSON>

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

0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows 2000

From novice to tech pro — start learning today.