How to Increase Shutdown Time for Services to Close Properly

Article translations Article translations
Article ID: 146092 - View products that this article applies to.
This article was previously published under Q146092
IMPORTANT: This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:
256986 Description of the Microsoft Windows Registry
Expand all | Collapse all

SUMMARY

The WaitToKillServiceTimeout value name in the registry allows you to specify a length of time that the service control manager must wait for services to complete the shut-down request.

Note: In Windows NT versions 3.1 and 3.5, you can shut down all services in 20 seconds.

This is true for the Internet Security and Acceleration (ISA) Server Enterprise Edition and Standard Edition cache file, as parts of the file may be in memory at shutdown time and when you consider the large size of ISA Server cache files (several Gigabytes) it is possible to encounter this kind of corruption. ISA Server has built in mechanisms to recover data, but you can avoid this situation by increasing the timeout period that occurs before shutdown.

MORE INFORMATION

WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.

To specify the wait time, do the following:
  1. Start Registry Editor (Regedt32.exe) and locate the following Registry subkey in the HKEY_LOCAL_MACHINE subtree:
    \SYSTEM\CurrentControlSet\Control
  2. On the Edit menu, click Add Value.
  3. Enter the following:
    Value Name: WaitToKillServiceTimeout
    Data Type: REG_SZ
    String:<In milli-seconds; default is 20,000>
    NOTE: Try not to increase the shut-down time. For example, if you lose power, it is possible that your uninterruptible power supply cannot provide backup power for the computer long enough to allow all the services to shut down properly, as well as the operation aystem.
  4. Click OK and then quit Registry Editor.
  5. Shut down, and then restart Windows.

Properties

Article ID: 146092 - Last Review: February 21, 2007 - Revision: 2.3
APPLIES TO
  • Microsoft Windows 2000 Server
  • Microsoft Windows 2000 Advanced Server
  • Microsoft Windows 2000 Professional Edition
  • Microsoft Windows 2000 Datacenter Server
  • Microsoft Windows NT Workstation 3.51
  • Microsoft Windows NT Workstation 4.0 Developer Edition
  • Microsoft Windows NT Server 3.51
  • Microsoft Windows NT Server 4.0 Standard Edition
Keywords: 
kbenv KB146092

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com