Output Exchange 2007 Retry/Ready Messages
Posted April 17th, 2009 by Matt ShadboltHere’s a quick and dirty Exchange 2007 command-let that will output all the outgoing emails that are not being delivered. It Checks the message status (NOT “Active) and the message retry count (GT 0) and outputs the results.
Get-Message -Server SERVER01 -IncludeRecipientInfo | Where{$_.RetryCount -gt 0} | Where{$_.Status -ne “Active”} | SELECT FromAddress, Recipients, LastError | Format-Table
Tags: EMS, Exchange 2007, Get-Message, PowerShell
No Responses

Leave a Reply