Set-ServerComponentState srv1 –Component HubTransport –State Draining –Requester Maintenance
Redirect-Message -Server srv1 -Target srv2.domain.local -Confirm:$false
Suspend-ClusterNode –Name srv1
Set-MailboxServer srv1 –DatabaseCopyActivationDisabledAndMoveNow $true
Set-ServerComponentState srv1 -Component ServerWideOffline –State InActive –Requester Maintenance
setup.exe /prepareschema /IAcceptExchangeServerLicenseTerms
setup.exe /preparead /IAcceptExchangeServerLicenseTerms
setup.exe /PrepareDomain /IAcceptExchangeServerLicenseTerms
setup.exe /m:upgrade /IAcceptExchangeServerLicenseTerms
Resume-ClusterNode –Name srv1
Set-MailboxServer srv1 –DatabaseCopyAutoActivationPolicy Unrestricted
Set-MailboxServer srv1 –DatabaseCopyActivationDisabledAndMoveNow $false
Set-ServerComponentState srv1 –Component HubTransport –State Active –Requester Maintenance
Set-ServerComponentState srv1 -Component ServerWideOffline –State Active –Requester Maintenance
cd "C:\Program Files\Microsoft\Exchange Server\V15\scripts"
.\RedistributeActiveDatabases.ps1 –DagName DAG1 –BalanceDbsByActivationPreference –confirm: $false