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

Reporting on database status, redundancy, and replication

When dealing with servers and database copies in a DAG, you need to keep a close eye on your database status, including replication health, as well as operational events, such as database mounts, moves, and failovers. In this recipe, you'll learn how to use the Exchange Management Shell, along with some built-in PowerShell scripts to proactively monitor your servers and databases configured for high availability.

How to do it...

To view the status information about databases that have been configured with database copies, use the Get-MailboxDatabaseCopyStatus cmdlet:

Get-MailboxDatabase |
Get-MailboxDatabaseCopyStatus |
select Name,Status,ContentIndexState

In this example, we're viewing all ...

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