Book Image

Microsoft Exchange 2010 PowerShell Cookbook

Book Image

Microsoft Exchange 2010 PowerShell Cookbook

Overview of this book

Table of Contents (22 chapters)
Microsoft Exchange 2010 PowerShell Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Activating mailbox database copies


After you've created a Database Availability Group (DAG) 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...

When activating a database copy, you can optionally set the - MoveComment parameter to a string value of your choice that will be recorded in the event log entry for the move operation.

You can choose to activate one mailbox database copy at a...