skip to Main Content

Take Exchange Server out of maintenance mode

Suppose you have put the Exchange Server in maintenance mode and finished working on it. You like to take the Exchange Server out of maintenance mode. It’s good to have the Exchange Server back in production. Run the commands and verify if all is working as expected on the Exchange Server.

Take Exchange Server out of maintenance mode

After the update, we like to get the Exchange Server EX01 to be active again. Run Exchange Management Shell as administrator.

You can now remove the server from maintenance mode. Note: If the server is not a DAG member, only the first and last commands are necessary. If the server is a DAG member, you need to run all the commands. Use the database copy auto-activation policy value that was set on the server. The default is Unrestricted.

Rebalance Database Availability Groups

Throughout the update process, the database copies will move between DAG members. Return your active database copies to their most preferred DAG member. Use the PowerShell script supplied by Microsoft.

Verify out of maintenance mode

Verify if the Exchange Server EX01 is back up and running. Run the following commands.

The cluster node needs to have the state up.

Check that the cluster node has the state up on all the Exchange Servers.

Check that all the required services are running.

Test the MAPI Connectivity.

Test the MAPI Connectivity on all the Exchange Servers.

Get the result of the DAG Copy Status Health.

Get the result of the DAG Copy Status Health on all the Exchange Servers.

Check the Replication Health.

Check the Replication Health on all the Exchange Servers.

Verify the Database Activation Policy is set to Unrestricted.

Verify the Database Activation Policy is set to Unrestricted on all the Exchange Servers.

Load balancer

Do you have the Exchange Server configured in a load balancer? Verify that the load balancer health checks have taken the server in the pool or marked it as online/active. If the load balancer does not automatically do this, manually mark the server as online/active. Log into your load balancer and set any virtual services you have to enable any connections to Server EX01. Typically there would be SMTP and HTTPS virtual services. This will enable connections to Server EX01.

Conclusion

In this article, you learned how to take the Exchange Server out of maintenance mode. It’s important to run the commands and check if all the services are healthy. It’s good to have a list of PowerShell commands before starting. The output needs to be positive.

Did you enjoy this article? You may like Pagefile Exchange 2013/2016 best practice PowerShell. Don’t forget to follow us and share this article.

ALI TAJRAN

ALI TAJRAN

ALI TAJRAN is a passionate IT Architect, IT Consultant, and Microsoft Certified Trainer. He started Information Technology at a very young age, and his goal is to teach and inspire others. Read more »

This Post Has 0 Comments

Leave a Reply

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

Back To Top