• Home
  • Consulting
  • Contact Us
    • About this site
    • Contact Wayne
    • Media Room
    • Wayne’s Bio

SBSFAQ.COM

Supporting IT Pro's & MSP's since 2000

  • Blog
  • FAQs
  • Reviews
  • Downloads

How can I make SBS 2008 shutdown and reboot faster?

June 4, 2010 by Wayne Small 5 Comments

SBS 2008 has an awful lot running on it.  It’s not surprise therefore when you find that it takes quite some time to shutdown the server.  I’ve seen my own server take 15 to 20 minutes to do a shutdown.  The secret to understand is what goes on during the shutdown process.  The shutdown process is the reverse of the startup process.  What I mean by this is that in the start-up sequence, after the basic bits of Windows operating system loads, the server goes through the list of services alphabetically and starts them up.  This can lead to “interesting” results as some services depend on others being started and therefore they fail to start correctly.  Most services therefore have dependencies linked together so that they force start services they need which may not normally start until later in the process.  This is how Windows gets around it and makes things work… most of the time 🙂

The reverse is then true for the shutdown process.  The Windows operating system starts to shutdown the services alphabetically from the top down.  Interestingly though, the dependencies don’t work in reverse.  This leads to things like Exchange actually not shutting down correctly and therefore taking time as it times out waiting to talk to things that have already been shutdown.  Lucky though the fix is simple.  Given Exchange is the key thing waiting to shutdown, if we start the shutdown of that FIRST, while Active Directory and other key services are running, then the entire process goes much faster and more smoothly.

Ok – to fix this – we need a script.  The script needs close down the main Exchange services in an orderly fashion and then we can commence shutdown of our SBS 2008 server.  Here’s the script we need

net stop msexchangeadtopology /y
net stop msftesql-exchange /y
net stop msexchangeis /y
net stop msexchangesa /y
net stop iisadmin /y

Ok – bundle that up and put it in a text file with a .cmd extension and you’re good to run it whenever you want to shutdown SBS 2008 quickly.  Here’s a link so you can download the script and make it easier for you.

The next thing you will want to do is to implement this so that it automatically runs on your SBS 2008 server whenever a shutdown is started. You can do this using group policy.  Use the Group Policy Management console to create a new Group Policy called Faster SBS Shutdown.  Edit the group policy so that it runs this script as a shutdown script.  You can see I’ve store the script in a folder on the SBS server called C:\scripts.  Link that Group Policy to the Domain Controllers OU in your domain as you can see below.

The next time you go to shutdown your SBS 2008 server, it will automatically run that script and stop the services in the order described BEFORE it starts it’s normal shutdown process.

image

Share this:

  • Click to share on Facebook (Opens in new window)
  • Click to share on Twitter (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Reddit (Opens in new window)
  • Click to print (Opens in new window)

Filed Under: FAQs Tagged With: SBS 2008, Scripts

About The Author

Wayne has been working with Microsoft Server products in the SMB market for over 20 years. He has a passion for technology and been a Microsoft MVP for over 15 years. Read More…

Comments

  1. Krod says

    June 11, 2010 at 8:07 pm

    I have been using a variant of this script since NT4 and Exchange 4. Pretty strange that Microsoft cant just fix this in a better way. But your idea of putting it in a gpo and making it automatic is great, thanks for that!

    Reply
    • Wayne Small says

      June 12, 2010 at 10:59 am

      Yes – i’ve done similar, but have never botherd to put it into a GPO till more recently and I figured others would think the same. Thanks for the comment.

      Reply
  2. The Muj says

    August 21, 2010 at 7:55 am

    I’ve applied this to an sbs 2008 server that I am working on, its improved but still takes a while. Any recommendations on other services that may be taking forever and a day to time out?

    Reply
  3. Tom says

    February 2, 2011 at 5:36 am

    Or just add the folowing line to the end of the script:
    ‘shutdown /r’
    and throw the script on the desktop. Run it to do the shutdown for you.
    This drops my reboot times from about 16 minutes to about 10 minutes.

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Search

Connect Online With Us

  • Facebook
  • Twitter

Reviews

Splashtop – Cost Effective Remote Control Software

September 22, 2017 By Wayne Small 2 Comments

Western Digital DL4100 NAS

March 3, 2015 By Wayne Small Leave a Comment

SBS 2011 Configuring Certification Guide (70-169)

August 7, 2012 By Wayne Small 4 Comments

Site News

Exchange Bug Stops Mail Delivery in 2022

January 2, 2022

Huge bug found in Intel CPU that could permit hackers to steal your data

January 4, 2018

Recent Posts

  • World Backup Day – What does it mean to Australians?
  • New Teams update finally allows easy cross organisation switching
  • MS Exchange Zero Day and RemotePowerShell Disabling on Admin accounts
  • Setup changes for Exchange 2016 and Exchange 2019
  • Bluetooth Mouse and Keyboard Randomly Stop Responding

Tags

Antivirus Backup Business Focus Cloud Computing Community Conferences Disaster Recovery Exchange 2010 Exchange Server Future Products Hyper-V Installation Microsoft Migration Patches Personal Rants SBS 4.5 SBS 2000 SBS 2000 SP1 SBS 2003 SBS 2003 Premium SBS 2003 R2 SBS 2003 R2 Premium SBS 2003 R2 Standard SBS 2003 SP1 Premium SBS 2003 SP1 Standard SBS 2003 Standard SBS 2008 SBS 2008 R2 SBS 2011 SBS 2011 Essentials SBS 2011 Standard Security Service Packs ShadowProtect Software Software I use StorageCraft Training TrendMicro Troubleshooting Virtualisation Windows Server 2012 Essentials Windows Storage Server 2008 R2 Essentials

Terms of Use

Privacy Policy

Copyright © 2023 · Magazine Pro Theme on Genesis Framework · WordPress · Log in