Time windows allows for Service Shutdown

Time windows allows for Service Shutdown

Issue:

Can the time windows gives a service to shut down before it kills the service be increased?


Solution:

Yes, the following information comes from the Microsoft URL : http://support.microsoft.com/kb/146092

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:
    SYSTEMCurrentControlSetControl 
  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 to high. Consider the entire shutdown time and if you have a UPS and how much time you have to shutdown before the ups looses power.
  4. Click OK and then quit Registry Editor. 
  5. Shut down, and then restart Windows.