Exchange Monitoring


Database Status

Get-MailboxDatabase

 

Get-MailboxDatabaseCopyStatus

 

Get-MailboxDatabaseCopyStatus | fl

 

 

Health

Test-ReplicationHealth den-mailbox1

 

Test-ReplicationHealth den-mailbox1 |fl

 

Test-MRSHealth den-mailbox1

 

Test-ServiceHealth

 

Test-ServiceHealth den-mailbox1

 

 

Outlook issues

Test-MAPIConnectivity  -server den-mailbox 1

 

Test-mailflow  -TargetMailboxServer den-mailbox2 -verbose

 

Get-ServerHealth den-mailbox2

 

Test-OutlookConnectivity

 

Test-WebServicesConnectivity

 

Test-ActiveSyncConnectivity

 

Test-EcpConnectivity -ClientAccessServer den-mailbox2

 

 

http://www.testexchangeconnectivity.com

 


Exchange LoadBalance Status


Get-MailboxDatabase | Sort Name | ForEach {$db=$_.Name; $xNow=$_.Server.Name ;$dbown=$_.ActivationPreference| Where {$_.Value -eq 1};  Write-Host $db “on” $xNow “Should be on” $dbOwn.Key -NoNewLine; If ( $xNow -ne $dbOwn.Key){Write-host ” WRONG” -ForegroundColor Red; } Else {Write-Host ” OK” -ForegroundColor Green}}



Get-MailboxServer | Get-MailboxDatabaseCopyStatus



WARNING: Redistribute based on Activation Preference settings

 

Get-MailboxDatabase | Sort Name | ForEach {$db=$_.Name; $xNow=$_.Server.Name ;$dbown=$_.ActivationPreference| Where {$_.Value -eq 1};  Write-Host $db “on” $xNow “Should be on” $dbOwn.Key -NoNewLine; If ( $xNow -ne $dbOwn.Key){Write-host ” WRONG” -ForegroundColor Red; Move-ActiveMailboxDatabase $db -ActivateOnServer $dbOwn.Key -confirm:$False} Else {Write-Host ” OK” -ForegroundColor Green}}