There's a registry setting that determines how much time Windows gives a service to quit when a shutdown is requested and obviously if you have a couple services acting up, this can seem very long.
Registry Key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control
Modify/Create the Value Name [
WaitToKillServiceTimeout] according to the Value Data listed below.
Data Type: REG_SZ [String Value] // Value Name: WaitToKillServiceTimeout
Value Data: [Default = 20,000 (expressed in milliseconds) Modify to preference.]
Exit Registry and Reboot
I prefer to use
6000 for the value (that's 6 seconds). Keep in mind that doesn't mean 6 secs per service in order, this means all at the same time. On slower machines you want this value higher. Considering that buffer flushing takes upto 5secs, I highly insist you don't use a value less than 6 secs.
Original url (I couldn't find my notes so I pasted from here):
http://www.theeldergeek.com/increase_shutd...es_to_close.htm
This post has been edited by travisowens: 07 February 2006 - 08:41 AM