Exchange 2K3 takes too long to restart on a DC

Posted on 2005-04-19
Last Modified: 2012-05-05

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?

Question by:melu
    LVL 57

    Accepted Solution

    >>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.
    LVL 4

    Assisted Solution

    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.

    Author Comment

    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"

    LVL 4

    Expert Comment

    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.
    LVL 57

    Expert Comment

    by:Pete Long
    Question was answered - however this is a much more elegant way of doing it

    Basically download and install this

    job done :)

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Join & Write a Comment

    Set OWA language and time zone in Exchange for individuals, all users or per database.
    Use email signature images to promote corporate certifications and industry awards.
    To show how to generate a certificate request in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Servers >> Certificates…
    The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now