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?
- 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?
- Put the server in maintenance mode by running the command:
Set-ServerComponentState <server> -Component ServerWideOffline -State Inactive -Requester Maintenance
- Verify the server has been placed into maintenance mode:
Get-ServerComponentState <server>| ft Component,State Autosize
- Run my Windows Updates and then Ex2013 updates
- 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