Powershell Needful Things put that in your pipeline

1Mar/170

Quickly find all deferred messages in Exchange

Posted by Jean Louw

Here is a quick little one liner to find all the deferred messages with FromAddress, Recipients and DeferReason.

Get-TransportServer | Get-Queue | ?{$_.Identity -like '*submission*'} | get-message -IncludeRecipientInfo | ?{$_.Status -eq 'Retry'} | select FromAddress,Recipients, DeferReason

2017-03-01_14-21-56

I'm working now on a function to resolve ambigious recipients and loops from here if possible.