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
- Launch Exchange Management Shell
- Set-ServerComponentState EX01–Component HubTransport–State Draining –Requestor Maintenance
- Redirect-Message –Server EX01–Target EX02
- Suspend-ClusterNode –Name EX01
- Set-MailboxServer EX01–DatabaseCopyActivationDisabledAndMoveNow $true
- Set-MailboxServer EX01–DatabaseCopyAutoActivationPolicyBlocked
- Get-MailboxDatabaseCopyStatus –Server EX01| Where{$_.Status –eq “Mounted”}
- Move-ActiveMailboxDatabase DB1 -ActivateOnServer EX02
- Set-ServerComponentState EX01–Component ServerWideOffline–State InActive –Requestor Maintenance
- Now verify that your hardware load balancer of choice has removed the Exchange server from the cluster
To Roll back follow the below steps
- Set-ServerComponentState EX01–Component ServerWideOffline–State Active –Requestor Maintenance
- Resume-ClusterNode –Name EX01
- Set-MailboxServer EX01–DatabaseCopyAutoActivationPolicyUnrestricted
- Set-MailboxServer EX01–DatabaseCopyActivationDisabledAndMoveNow $false
- Set the Hub Transport component to Active – Set-ServerComponentState EX01–Component HubTransport–State Active –Requester Maintenance
- Confirm that your Hardware load balancer now shows server as back in the cluster