SBS 2008 takes a long time to shut down. The reason is that Active Directory (AD) shuts down before Exchange, which relies on AD... It waits a long time and finally times out, allowing the shutdown process to continue. (extremely simplified - see Wayne Small's blog for a more complete explanation)
To fix it, we run a script that shuts down Exchange at the start of the shutdown process.
Enter the following lines into a script, and save it as (eg.) C:\Scripts\fast-shutdown.cmd
net stop msexchangeadtopology /ynet stop msftesql-exchange /ynet stop msexchangeis /ynet stop msexchangesa /ynet stop iisadmin /y
Now use Group Policy to run the script automatically:
- Open the Group Policy Management Console
- Create a new Group Policy called Faster SBS Shutdown
- Link the policy object to the Domain Controllers OU
- Call C:\Scripts\fast-shutdown.cmd using the following policy setting: Computer Configuration\Policies\Windows Settings\Scripts\Shutdown
