The following is a repost
After installing Exchange 2003 (or Exchange 2000) on Windows2003, many users find that the server is closed very slow ...
Unfortunately, I have also encountered this problem. Analyze from the error information in the log, and the directory service is related to some service termination.
Check it on Microsoft's KB, really
Because the directory service is caused by the Exchange service shutdown. The article provides three solutions:
1A: Use the batch file to close the Exchange related service before shutting down the server.
Net Stop "Microsoft Exchange System Attendant" / Y
1b: Use the batch file to close the proxy server to automatically discover the service before shutting down the server.
Net Stop "Winhttp Web Proxy Auto-Discovery Service" / Y
2: Modify the termination service waiting time in the registry:
HKEY_LOCAL_MACHINE / SYSTEM / CURRENTCONTROLSET / Control / WaitTokillServentimeout
The default is 600,000, which can be appropriately reduced.
3: Place the Exchange database file in non-system partition ...
The following is my original
After my own practice, I found that it is very simple to use 1A (no need for 1B). Method 2 and 3 have no practices.
Before shutdown: Start, run, enter NET STOP "Microsoft Exchange System Attendant" / Y, Enter.
The above command means to stop Microsoft Exchange System Attendant services.
or
Write the above command into a batch file.
Open Notepad, enter:
@echo offnet stop "Microsoft Exchange System Attendant" / Y
Save as shut.bat, run this batch file before shutdown.
In the start of the CMD transfer to the command line mode, at the prompt at the following: Copy Content Stop MsexChageSA / YNET Stop WinHttPautoproxySVC / Y @ echo ON Press F6 to save the newly created file Copy to C: / Windows / system32 directory. Open the Security Policy Manager, select Double-click Shutdle in Windows (Start / Shutdown), select Add, Enter: C: /Windows/system32/stopexserver.bat at the Script Name, and then determine the exit. Each time it is automatically run each time the script is automatically run, saving the trouble before each shutdown.