Wednesday, October 19, 2011

Exchange 2010 - Check ServiceHealth, Configure Message Tracking Log with PowerShell

Test-ServiceHealth your-cas-server

Test-ServiceHealth your-mailbox-server

OR

Get-ExchangeServer | Test-ServiceHealth | ft Role,RequiredServicesRunning

--------------------------------------------------------------------------------
Get-TransportServer -identity your-cas-ht-server | fl *messagetracking*

Set-TransportServer your-cas-ht-server –MessageTrackingLogEnabled $true

Set-TransportServer -id your-cas-ht-server –MessageTrackingLogMaxAge 60.00:00:00

Set-TransportServer -id your-cas-ht-server –MessageTrackingLogPath “E:MessageTrackingLogs”

Set-TransportServer -id your-cas-ht-server –MessageTrackingLogMaxDirectorySize 3GB

Set-TransportServer -id your-cas-ht-server –MessageTrackingLogSubjectLoggingEnabled $true

No comments: