skip to Main Content

Change DAG database activation preference

You like to change the DAG database activation preference on the Exchange Server. In this article, you will learn how to change the database activation preference. We will be using PowerShell.

Get current DAG database activation preference

Get the database activation preference of all the databases on the Exchange Server. Run Exchange Management Shell and run the following command.

You can run the command against a particular database. It will give you the activation preference of that particular database. For example, database DB1.

Now that we know the current activation preference of the database DB1. We can proceed further to change its preference.

Which order of database activation preference

We would like to change the activation preference of the database DB1. Database DB1 activation preference is currently set as follows:

Exchange Server EX01 as preference 1
Exchange Server EX02 as preference 2

The change of the database activation preference should be set as follows:

Exchange Server EX01 as preference 2
Exchange Server EX02 as preference 1

Change database activation preference

Run Exchange Management Shell as administrator. Run the following command to change Exchange Server EX02 to activation preference 1.

After running the command, we need to do a check. In this check, we can tell if the activation preference changed.

Confirm database activation preference change

Make sure that the configuration applied.

The database DB1 activation preference is successful changed.

Thoughts

It’s great that we can change the DAG database activation preference using PowerShell. If you enjoyed this article, you may also like PowerShell remove quotation marks from a text file. 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