Exchange 2K3 takes too long to restart on a DC


I am a new admin learning how to get Exchange 2003 up and running on my production server.

Their is a known bug that Exchange 2003 takes too long to shut down on a DC - and a resolution on how to solve this problem - according to the article "How to Speed up an Exchange 2000 or 2003 - DC reboot"


that you should create a batch file - the code is pasted in the article also.

Where should one place the batch file so that it gets excuted everytime you shut down the server?

Who is Participating?
Pete LongTechnical ConsultantCommented:
>>Where should one place the batch file so that it gets excuted everytime you shut down the server?

Running Batch files at Startup/Shutdown (Windows 2000)

You can run a batch file at either Startup or shutdown (or Logon/Logoff) from the Local Security Policy

Click Start >Run > type "gpedit.msc" {enter}

Navigate to the following location

Local Computer Policy >Computer Configuration >Windows Settings >Scripts


Local Computer Policy >User Configuration >Windows Settings >Scripts

In both locations you will see a set of scripts in the USER settings you set scripts for LOGON and LOGOFF. In the COMPUTER settings you will see scripts for STARTUP and SHUTDOWN

Add your .bat file to the appropriate script.
There is a far easier way to do this rather than using the batch file to stop the services.

You can specify the value just by making a registry change:

3. Decrease the value of "WaitToKillServiceTimeout" in the registry:
       The default value of "WaitToKillServiceTimeout" are: 600000 and should be changed to lower number, such as 120000 (6 minutes or 2 minutes)
       This value should be found by experiments and may impact other services in the system and this change is not
       supported by Microsoft.

I have always founf this to work, and not cause any problems.
meluAuthor Commented:
Hi PeteLong,

I have tried that - am able to link the script as you guided me.

Is their a place to activate - b/c according to the article - if the shutdown occurs => i am supposed to get a command prompt as to what option to select.

Also takes the same amount to time to shut the server - minutes and minutes - maybe should try hsclater suggest - just that the script sounds "cleaner"

Yes, you can set the reg key so it only takes like 1 minute. I believe that 120000 is a standard value for it to not cause problems.
Pete LongTechnical ConsultantCommented:
Question was answered - however this is a much more elegant way of doing it

Basically download and install this

job done :)
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.