How to delay loading of specific services

Support for Windows XP has ended

Microsoft ended support for Windows XP on April 8, 2014. This change has affected your software updates and security options. Learn what this means for you and how to stay protected.

Support for Windows Server 2003 ended on July 14, 2015

Microsoft ended support for Windows Server 2003 on July 14, 2015. This change has affected your software updates and security options. Learn what this means for you and how to stay protected.

This article describes how to delay the loading of specific services. On some computers (especially older systems and those with slower peripherals), it may be necessary to delay the loading of a specific Windows service for the computer to boot properly. Or, you may want to make sure that one service has started and is available for use before another for troubleshooting purposes. This can impact such issues as a domain controller, which cannot access the network where a protocol, or a service such as DHCP, attempts to load BEFORE the network card has had a chance to be bound (for example, Compaq Netflex).
More information
You will first need to verify that the dependency you want to create doesnot already exist. The following are some of the most common dependenciesthat already exist in a default configuration:
   Service      Depends on   -------      ----------   Alerter      LanmanWorkstation   Browser      LanmanWorkstation, LanmanServer, LmHosts   ClipSrv      NetDDE   DHCP         Afd, NetBT, TCP/IP   Messenger    LanmanWorkstation, NetBIOS   NetBT        TCP/IP   NetDDE       NetDDEDSDM   NetLogon     LanmanWorkstation, LmHosts   Parallel     Parport   Replicator   LanmanServer, LanmanWorkstation				

The Registry subkeys for services are located in the following path and cancontrol how services are loaded.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\<Service name>
Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
322756 How to back up and restore the registry in Windows
To create a new dependency, select the subkey representing the service youwant 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 exactname 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 serviceor services listed in this value are started before attempting to start thedependent service.

For example, you may want to ensure that your Server service loads beforethe Windows Internet Name Service (WINS). If you select the WINS key in theregistry, you will notice that the DependOnService value already exists inthe WINS key. In a default installation, WINS is already dependent on bothRPCSS (Remote Procedure Call) and NTLMSSP (Windows NT LanMan SecuritySupport Provider) services. To add the Server service to this list,double-click the DependOnService value. In the Multi-String Editor, on the line below NTMLSSP, add the entry "LANMANSERVER" (without quotation marks), and then click OK.

In addition, Windows 2000 and Windows 2003 Active Directory needs to find and use the DNS Server service. The Netlogon service can be delayed to ensure that the DNS Server service is up and running for Dynamic DNS registration and query for existing Active Directory domain controllers that are in the DNS server database. Use the DependOnService in the Netlogon and add DNS to the list of LanmanWorkstation and LanmanServer. This delays Netlogon from starting until the DNS Server service on that same computer is started and ready.

Note Only delay the Netlogon service for DNS on a Windows 2000 or Windows 2003 Server when the DNS service is on the same Windows 2000 or Windows 2003-based server.

Note Entries in this field are NOT case-sensitive.

Warning Adding this entry manually may prevent the system from starting properly if you establish a "circular dependency." In its simplest form, such a problem would occur when you make two differing services dependent on one another. Neither service would be able to start as they would both require the other to be started first.

Note If you have a service that needs to start late in the boot cycle but you do not have a specific service dependency, as explained above, then choose one of the services which startup last as the data value for the value "Depends on Service". Services commonly selected are Spooler and Messenger.
For further information, refer to Chapter 8, General Troubleshooting, inthe Windows NT Server Resource Kit.
registry dependency boot delay kbhowto kbDSupport

Αναγνωριστικό άρθρου: 193888 - Τελευταία αναθεώρηση: 08/14/2015 07:20:00 - Αναθεώρηση: 6.0

Windows 10 Pro, released in July 2015, Windows 10 Enterprise, released in July 2015, Microsoft Windows NT Workstation 4.0 Developer Edition, Microsoft Windows NT Server 4.0 Standard Edition, Microsoft Windows 2000 Professional Edition, Microsoft Windows 2000 Server, Microsoft Windows 2000 Advanced Server, Microsoft Windows XP Professional, Microsoft Windows XP Home Edition, Microsoft Windows Server 2003, Standard Edition (32-bit x86), Microsoft Windows Server 2003, Enterprise Edition (32-bit x86), Windows Vista Home Premium, Windows Vista Ultimate, Windows Vista Enterprise, Windows Server 2008 Datacenter, Windows Server 2008 Enterprise, Windows Server 2008 Standard, Windows 7 Enterprise, Windows 7 Home Basic, Windows 7 Home Premium, Windows 7 Professional, Windows 8, Windows 8 Pro, Windows 8 Enterprise, Windows 8.1, Windows 8.1 Pro, Windows 8.1 Enterprise, Windows Server 2012 Datacenter, Windows Server 2012 Standard

  • kbinfo KB193888