Aug 28, 2007

Windows server restarts taking long time

Slower shutdowns typically happens with a domain controller running exchange. In many cases it takes more than 10 minutes or more to shutdown. This happens because the Lsass (Active Directory related) service shuts down before the Exchange-related services shutdown. Exchange services keeps trying for contacting AD and it takes longer time to shutdown.

To make windows server restart process faster :

it is suggested to manually stop Exchange services before proceeding with shutdown or restart of a domain controller.

Also I have manually stopped few other services as well before restart and this has made server shutdown even faster. Finally I created a dos batch file to stop the services and then initiate the server restart.

Following are the command which can be included in the batch file.

net stop alerter
net stop msexchangeis /y
net stop msexchangesa /y
net stop msexchangemta /y
net stop imap4svc /y
net stop resvc /y
net stop pop3svc /y
net stop msexchangemgmt /y
net stop policyagent
net stop defwatch
net stop sens
net stop schedule
net stop plugplay
net stop spooler
net stop w3svc
net stop iisadmin
net stop messenger
net stop winvnc
net stop wsusservice
net stop termservice
net stop dhcpserver
net stop ismserv
net stop winmgmt /y
net stop wmi /y

net stop wuauserv
net stop casunivdomainsvr
net stop casjobengine
net stop casmsgengine
net stop cassvccontrolsvr
net stop castapeengine
net stop cadiscoverysvc

__________________________________

Also in the case of server startup : we can set few services start status as manual and the use net start commands batch file to start those service after server boots up.

No comments: