Windows IT Pro is the leading independent community for IT professionals deploying Microsoft Windows server and client applications and technologies.
  
  
  Advanced Search 


February 09, 2004

After I install Microsoft Exchange Server 2003 on my domain controller (DC), why does the DC take so long to shut down?

RSS
Subscribe to Windows IT Pro | See More Tips Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

A. Exchange relies heavily on Active Directory (AD) and uses several services to optimize AD communication. One of these services is the DSAccess service, which provides a cache of information from AD to various Exchange components, including the Information Store (IS), the Message Transfer Agent (MTA) and any other component that requires AD information. By recovering cached AD information, Exchange requires fewer direct queries to the DCs.

When you shut down a Windows Server 2003 DC, its services stop very quickly--faster than Windows 2000 services shut down, which is why this problem appears to be new to Windows 2003. An example of one such affected service is the Local Security Authority Subsystem (LSASS). DSAccess uses this service heavily. Because this service stops before DSAccess can stop cleanly, the DSAccess service goes through several timeouts before the system can shut down (these timouts are set to 10 minutes by default). Other Exchange services have a similar problem, causing even longer delays.

To resolve these delays, you can create a script that you manually run before stopping your computer, and the script will stop each Exchange service cleanly because AD is still running. Sample content for the script might include

net stop msexchangeis
net stop msexchangemta
net stop msexchangemgmt
net stop msexchangesa
net stop resvc
net stop smtpsvc
net stop w3svc
net stop httpfilter
net stop http
net stop iisadmin
net stop winhttpautoproxysvc

You can also add the shutdown command to the end of your script to automate the whole shutdown and restart process.

Another approach is to change the amount of time Windows 2003 waits before killing a service that's not responding. To adjust this timeout period, perform the following steps:

  1. Start a registry editor (e.g., regedit.exe).
  2. Navigate to the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control registry subkey.
  3. Double-click WaitToKillServiceTimeout.
  4. Change the value from the default of 600000 (10 minutes) to something else (e.g., 20000 for 20 seconds), then click OK.
  5. Close the registry editor.

Be aware that changing this registry value will change the wait period for all services to stop, so setting this value too low might cause problems with services if the OS is killing them before they can cleanly finish.

End of Article



Reader Comments
That's good.it is very useful for me

stefan February 23, 2004


Superb article, thanks very much, gave me the result I was looking for + a clear explanation of why the shutdown process was taking soooooooooooo long!
Thanks

Darren elsom March 18, 2004


Very usefull data

Sean April 07, 2004


Great article, just what I had been searching technet for.

mdionnh October 04, 2004 (Article Rating: )


Thank you very much for this information, it works perfectly

Anonymous User November 17, 2004


Thank you! This is very useful information and exactly what I needed to know.

Anonymous User November 27, 2004 (Article Rating: )


you are my saviour :)

Anonymous User February 03, 2005 (Article Rating: )


Thanks for the useful information. It's has been a big problem not to now why my server did this.


Anonymous User February 25, 2005 (Article Rating: )


man you are good!! I had been hard rebooting for a long time now, thanks to you not anymore

Anonymous User March 01, 2005


Just a quick note, this issue is not new to Windows Server 2003. It has been an issue since Exchange 2000 was released. You just won't find any Technet articles about it as for some reason Microsoft doesn't like to talk about this issue..

Anonymous User March 28, 2005 (Article Rating: )


 See More Comments  1   2 

You must be a registered user or online subscriber to comment on this article. Please log on before posting a comment. Are you a new visitor? Register now




Top Viewed ArticlesView all articles
Command Prompt Tricks

One reader shares his tip for setting up the command prompt to reflect a remote path. ...

WinInfo Short Takes: Week of November 9, 2009

An often irreverent look at some of the week's other news, including some more Windows 7 sales momentum, some Sophos stupidity, Microsoft's cloud computing self-loathing, more whining from the browser makers, Zoho's "Fake Office," and much, much more ...

How can I stop and start services from the command line?

...


Related Events 7 Ways To Get More From Your SharePoint Deployment Now

Check out our list of Free Email Newsletters!

Related Resources Introducing Left-Brain.com, the online IT bookstore
Looking for books, CDs, toolkits, eBooks? Prime your mind at Left-Brain.com

Discover Windows IT Pro eLearning Series!
Clear & detailed technical information and helpful how-to's, all in our trademark no-nonsense format


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro DevProConnections IT Job Hound
Left-Brain.com Technology Resource Directory asp.netPRO ITTV Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 © 2009 Penton Media, Inc. Terms of Use | Privacy Statement