How to put Exchange 2016 in maintenance mode

how to put Exchange 2016 in maintenance mode

Before get started make sure do the following steps

  • Install updates,Cu,windows update
  • Reboot server and etc

Now follow the below steps to put exchange 2016 in maintenance mode

  1. Launch Exchange Management Shell
  2. Set-ServerComponentState EX01–Component HubTransport–State Draining –Requestor Maintenance
  3. Redirect-Message –Server EX01–Target EX02
  4. Suspend-ClusterNode –Name EX01
  5. Set-MailboxServer EX01–DatabaseCopyActivationDisabledAndMoveNow $true
  6. Set-MailboxServer EX01–DatabaseCopyAutoActivationPolicyBlocked
  7. Get-MailboxDatabaseCopyStatus –Server EX01| Where{$_.Status –eq “Mounted”}
  8. Move-ActiveMailboxDatabase DB1 -ActivateOnServer EX02
  9. Set-ServerComponentState EX01–Component ServerWideOffline–State InActive –Requestor Maintenance
  10. Now verify that your hardware load balancer of choice has removed the Exchange server from the cluster

To  Roll back follow the below steps

  1. Set-ServerComponentState EX01–Component ServerWideOffline–State Active –Requestor Maintenance
  2. Resume-ClusterNode –Name EX01
  3. Set-MailboxServer EX01–DatabaseCopyAutoActivationPolicyUnrestricted
  4. Set-MailboxServer EX01–DatabaseCopyActivationDisabledAndMoveNow $false
  5. Set the Hub Transport component to Active – Set-ServerComponentState EX01–Component HubTransport–State Active –Requester Maintenance
  6. Confirm that your Hardware load balancer now shows server as back in the cluster

 

Leave a Reply

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