Powershell or other method to see NDRs? Exchange 2013

Our Exchange 2013 server was acting up this AM and I had a lot of mail go out that didn't go out and just sat in the queue.  I'm being asked for a report on all NDRs that were sent.

Is there a way in the GUI or via powershell to see all NDRs that were sent for a specified time period in Exchange 2013?


Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

let me see if I understand correctly what is it you are looking for:

there were a whole bunch mail sent. for some reason, mail did not go out in a timely matter but was sitting in the queue, so the mail was delayed.
what happened next? was it deleted? did it go out eventually?  
it could be that there were no NDRs generated, because delay was not long enough and system was still trying to deliver the messages
Sudeep SharmaTechnical DesignerCommented:
Not a complete solution, but you could try this:
Get-transportserver | Get-MessageTrackingLog –resultsize unlimited | where{$_.EventID -Like 'DSN' -OR $_.EventID -Like 'FAIL'} | select Timestamp,clientip,ClientHostname, ServerIp,ServerHostname,sender,EventId, MessageSubject, TotalBytes , SourceContext,ConnectorId, Source ,@{Name=”Recipents”;Expression={$_.recipients}} | export-csv C:\NDR.csv

Open in new window

Let us know if you would need anything specific.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.