ServerMaintenance PS-Scripts for non-DAG

We have 1 Ex2013 sp1/Win2012 server that does it all for us (5 db's, public folders, and we don't use UM)

Are there any Ex2013sp1 Start/Stop ServerMaintenance PS-Scripts for non-DAGs?  The ones that are shipped with Ex2013 are for DAGs; as far as I can tell.

I need to run Windows Updates and then Ex2013 updates ASAP.  There are so many manual steps that need to take place in order to make this happen it would be great if I could run a script.  If there are no scripts available would these commands be correct?

  1. Drain the transport queues by running the command:
    Set-ServerComponentState  -Component HubTransport -State Draining -Requester Maintenance Redirect-Message -Server  -Target <server_fqdn>

    Wait till the queue is empty

    However, we only have 1 Ex2013 server.  I'm confused with the "Redirect-Message -Server  -Target <server_fqdn>"command, where would I redirect to?

  2. Put the server in maintenance mode by running the command:
    Set-ServerComponentState <server> -Component ServerWideOffline -State Inactive -Requester Maintenance
  3. Verify the server has been placed into maintenance mode:
    Get-ServerComponentState <server>| ft Component,State Autosize
  4. Run my Windows Updates and then Ex2013 updates
  5. Take the sever out of Maintenance Mode:
    Set-ServerComponentState pebbles -Component ServerWideOffline -State Active -Requester Maintenance

    To help transport services immediately pick the state change run:
    Restart-Service MSExchangeTransport
    Restart-Service MSExchangeFrontEndTransport
June 8th, 2015 7:53pm

Wow, you're thorough.  Everyone I know just reboots the server.
Free Windows Admin Tool Kit Click here and download it now
June 8th, 2015 8:04pm

Really, Ed?  That would be fantastic!

I was doing some reading on the web and everywhere I went, said that the server had to be in "Maintenance Mode" to run updates.  Is that incorrect in your opinion?

June 8th, 2015 8:15pm

It's probably a best practice.  I've just observed that my customers don't do it.
Free Windows Admin Tool Kit Click here and download it now
June 8th, 2015 8:21pm

After I run Windows updates can I just run the Ex2013 CU6 update?  Doesn't it shutdown services automatically if it needs to?
June 8th, 2015 8:27pm

Yes, it does.
Free Windows Admin Tool Kit Click here and download it now
June 8th, 2015 8:54pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics