Solved

How to change service dependencies

Posted on 2004-10-27
5,109 Views
Last Modified: 2011-06-16
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
0
Question by:initialit
    3 Comments
     
    LVL 5

    Accepted Solution

    by:
    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
     

    Author Comment

    by:initialit
    thanks for the help...that's what i needed.
    0
     
    LVL 7

    Expert Comment

    by:CitizenRon
    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

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone. Privacy Policy Terms of Use

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
    Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
    In this Experts Exchange video Micro Tutorial, I'm going to show how small business owners who use Google Apps can save money by setting up what is called a catch-all email address in their Gmail accounts. By using the catch-all feature, small busin…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    875 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now