Message Tracking with Powershell in Exchange

This is an example of a Message Tracking command that I use most:

Get-Messagetrackinglog -ResultSize Unlimited -Recipients:user@contoso.com -EventID "RECEIVE" -Start "09/25/2016 4:30:00 PM" -End "09/30/2016 5:17:00 PM" | select-object eventid,timestamp,messageid,sender,recipients,messagesubject | Out-GridView

These are the parts that will improve search results and make it easier for you to understand the results:

-ResultSize Unlimited specifies the results should include everything
The select-object part shows the objects that need to be shown in the results, the most common objects are listed here.
Out-GridView sends the output to an interactive table in a seperate window.

OPTIONAL PARAMETERS:
-Recepients specifies a specific recepient (or multiple, seperated by a comma)
-EventID is where you can choose what event you want to view (RECEIVE, SEND, FAIL…)
-Start and -End makes the result show a specific timeframe and needs one of these format: “Sep 25 2016” or “09/25/2016 4:30:00 PM”

 

Source : https://technet.microsoft.com/en-us/library/aa997573%28v=exchg.160%29.aspx?f=255&MSPPError=-2147217396

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.