Step-by-Step Guid
Once verified, remove the server from the maintenance mode using the following command in Exchange Management Shell:
Step 1:
Set-ServerComponentState “Ex01” –Component ServerWideOffline –State Active –Requester Maintenance
Set-ServerComponentState "Ex01" –Component HubTransport –State Active –Requester Maintenance
Note: If the server is a DAG member, you need to run all the commands:
Resume-ClusterNode –Name "Ex01"
Set-MailboxServer "Ex01" –DatabaseCopyAutoActivationPolicy Unrestricted
Set-MailboxServer "Ex01" –DatabaseCopyActivationDisabledAndMoveNow $false
Set-ServerComponentState "Ex01" –Component ServerWideOffline –State Active –Requester Maintenance
Set-ServerComponentState "Ex01" –Component HubTransport –State Active –Requester Maintenance
Step 2:
Put following command to verify the DAG member server is out of maintenance mode,
Get-ClusterNode "Ex01"
Step 3:
Check that the cluster node has the state up on all the Exchange Servers.
Get-ClusterNode
Step 4:
Check that all the required services are running.
Test-ServiceHealth "EX01"
Step 5:
Check that the required services are running on all the Exchange Servers.
Get-ExchangeServer | Test-ServiceHealth
Step 6:
Test the MAPI Connectivity.
Test-MAPIConnectivity -Server "EX01"
Step 7:
Test the MAPI Connectivity on all the Exchange Servers.
Get-ExchangeServer | Test-MAPIConnectivity
Step 8:
Get the result of the DAG Copy Status Health
Get-MailboxDatabaseCopyStatus -Server "EX01" | Sort Name | Select Name, Status, Contentindexstate
Step 9:
Get the result of the DAG Copy Status Health on all the Exchange Servers.
Get-MailboxDatabaseCopyStatus * | Sort Name | Select Name, Status, Contentindexstate
Step 10:
Check the Replication Health.
Test-ReplicationHealth -Server "EX01"
Step 11:
Check the Replication Health on all the Exchange Servers.
Get-DatabaseAvailabilityGroup | Select -ExpandProperty:Servers | Test-ReplicationHealth | Sort Name
Step 12
Verify the Database Activation Policy is set to Unrestricted.
Get-MailboxServer "EX01" | Select Name, DatabaseCopyAutoActivationPolicy
Step 13:
Verify the Database Activation Policy is set to Unrestricted on all the Exchange Servers.
Get-MailboxServer | Select Name, DatabaseCopyAutoActivationPolicy
You have learned how to take the Exchange Server out of maintenance mode. It's important to run the necessary commands and verify that all services are healthy. Having a list of PowerShell commands ready before starting is helpful. Ensure the output indicates that everything is functioning correctly.