Here are some screenshots of what happens along the way:
Archive for August, 2010
Automatically Fixing FailedAndSuspended Exchange 2010 Databases with PowerShell
Categories: Exchange, PowerShell
Tags: Exchange, PowerShell, Script
Checking Exchange 2010 Database Health with PowerShell
Categories: Exchange, PowerShell
Tags: Exchange, PowerShell, Script
Just a quick script that checks your database health. Anything besides ‘Healthy’ or ‘Mounted’ should probably be investigated. ![]()
Add-PSSnapin *0* -ErrorAction SilentlyContinue
$mailboxservers = get-mailboxserver | get-exchangeserver | ?{$_.IsE14OrLater -eq 'True'}
$A = (get-host).UI.RawUI
$A.WindowTitle = "Database Health Check"
$B = $A.windowsize
$B.width = 110
$B.height = 30
$A.WindowSize = $B
while ($true) {cls; foreach ($mailboxserver in $mailboxservers){Get-MailboxDatabaseCopyStatus -Server $mailboxserver.name | ft -AutoSize Name,*Status,ContentIndexState,CopyQueueLength,ReplayQueueLength} ;sleep 5}
This it the output, refreshed every 5 seconds:






