• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 251
  • Last Modified:

Exchange 2K3 takes too long to restart on a DC

Hi,

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"

in http://www.msexchange.org/


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?

Rgs,
Mehul
0
melu
Asked:
melu
  • 2
  • 2
2 Solutions
 
Pete LongConsultantCommented:
>>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

OR

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.
0
 
hsclaterCommented:
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:
 
         HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\WaitToKillServiceTimeout
 
       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.
0
 
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"

Rgs,
Mehul
0
 
hsclaterCommented:
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.
0
 
Pete LongConsultantCommented:
Question was answered - however this is a much more elegant way of doing it

http://www.petri.co.il/slow_shutdown_of_exchange_2003_server_installed_on_dc.htm

Basically download and install this http://www.petri.co.il/software/reboot_ex_on_dc.zip

job done :)
0

Featured Post

Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now