适用于:Exchange 2010/2013/Exchange 2016

命令一:获取DAG组所有数据库副本的复制状态

(Get-DatabaseAvailabilityGroup) | ForEach {$_.Servers | ForEach {Get-MailboxDatabaseCopyStatus -Server $_}}

命令二:获取DAG所有节点的复制健康状态

(Get-DatabaseAvailabilityGroup) | ForEach {$_.Servers | ForEach {Test-ReplicationHealth -Server $_}}

命令三:返回所有数据库的复制状态信息(仅name,status,contentindexstate列)

Get-MailboxDatabaseCopyStatus * | sort name | select name,status,contentindexstate

欢迎关注如下微信公众号获取更多信息

qrcode_for_gh_7159fb337d37_258.jpg