We firstly drain the messages queues - i.e. all current messages in the queue will be sent, although new ones will be rejected temporarily:
Set-ServerComponentState -Component HubTransport -State Draining -Requester MaintenanceAlthough we can also re-direct messages to another server temporarily:
Redirect-Message -Server -Target mbox02.mydomain.comAnd finally we shutdown / suspend the Exchange services:
Set-ServerComponentState -Component ServerWideOffline -State Inactive -Requester MaintenanceYou can now perform the necessary maintenance on the server - whether it be mailbox database restore, restart for updates etc.
When we are finished we start the Exchange services back up:
Set-ServerComponentState -Component ServerWideOffline -State Active -Requester MaintenanceAnd finally start the mail queue again:
Set-ServerComponentState -Identity -Component HubTransport -State Active -Requester Maintenance
0 comments:
Post a Comment