Powershell command to track emails sent to specific user email address

Suppose you have an end user saying that he is missing a message from an external sender in this case what you will do to track email from exchange server for that user ?

Well you can use following PowerShell command to track emails sent to your end user

Condition 1 – Get all failed/undeliverable emails:

Get-Messagetrackinglog -Recipients: team@microsoft.com -EventID “FAIL” -Start “5/4/2011 9:00:00 AM” -End “5/10/2011 5:00:00 PM” |ft Timestamp, Source, Sender, Recipients, MessageSubject >>C:output.txt

Condition 2 – Get all success emails

Get-Messagetrackinglog -Recipients: team@microst.com -EventID “RECEIVE” -Start “5/4/2011 9:00:00 AM” -End “5/10/2011 5:00:00 PM” |ft Timestamp, Source, Sender, Recipients, MessageSubject >>C:output.txt

This will give you the output in the form:
Timestamp Source Sender Recipients MessageSubject

Source “SMTP” means it’s an external email and “STOREDRIVER” means processed internally

Hope this help you to track your user email, if any question get back to me and I will be happy to help.

Author: admin

Leave a Reply

Your email address will not be published. Required fields are marked *