从Exchange 2010 SP1高可用性环境下升级到SP2
Test-MapiConnectivity | Sort Database | Format-Table -AutoSize | Format-Table -AutoSize Get-MailboxDatabase | Sort Name | Get-MailboxDatabaseCopyStatusfunction CopyCount
{
$DatabaseList = Get-MailboxDatabase | Sort Name
$DatabaseList | % {
$Results = $_ | Get-MailboxDatabaseCopyStatus
$Good = $Results | where { ($_.Status -eq "Mounted") -or ($_.Status -eq "Healthy") }
$_ | add-member NoteProperty "CopiesTotal" $Results.Count
$_ | add-member NoteProperty "CopiesFailed" ($Results.Count-$Good.Count)
}
$DatabaseList | sort copiesfailed -Descending | ft name,copiesTotal,copiesFailed -AutoSize
}
CopyCount
页:
[1]