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

Activating mailbox database copies

After you've created a Database Availability Group and have added multiple database copies to the servers in your organization, you'll need to be able to move the active copies to other servers. In this recipe, you'll learn how to do this using the Exchange Management Shell.

How to do it...

Manually moving the active mailbox database to another server in a DAG is a process known as a database switchover. In order to activate passive mailbox database copies on another server, you'll need to use the Move-ActiveMailboxDatabase cmdlet:

Move-ActiveMailboxDatabase DB01 '
-ActivateOnServer MBX2 '
-Confirm:$false

In this example, the passive mailbox database copy of DB01 is activated on the MBX2 server.

How it works... ...

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