O'Reilly logo

Microsoft Exchange Server PowerShell Cookbook - Third Edition by Mike Pfeiffer, Jonas Andersson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adding mailbox servers to a Database Availability Group

Once you've created a Database Availability Group, you'll need to add DAG members, which are servers running the Mailbox server role. In this recipe, you'll learn how to add mailbox servers to a DAG using the Exchange Management Shell.

How to do it...

To add a mailbox server to a DAG, use the Add-DatabaseAvailabilityGroupServer cmdlet:

Add-DatabaseAvailabilityGroupServer -Identity DAG '
-MailboxServer MBX1

In this example, the MBX1 server is added to a database availability group named DAG.

How it works...

In order to run the Add-DatabaseAvailabilityGroupServer cmdlet, the servers being added to the DAG must be running an Enterprise Edition of either Windows Server 2008 R2, Windows Server 2012 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required