Avatar of Dwight Baer
Dwight Baer
Flag for Canada

asked on 

I need an example syntax using Get-MessageTrackingLog in Exchange Server 2016

Using MS Exchange 2016 on-premise.  Problem:  The mail (from external senders only) is mysteriously being held for up to 14 hours and then it starts to flow again.


I'm looking for examples of using the Get-MessageTrackingLog command in Exchange Management Shell to report on all emails that are sent and delivered within a specific time frame.  I'm using help from Microsoft at:

https://docs.microsoft.com/en-us/exchange/mail-flow/transport-logs/search-message-tracking-logs?view=exchserver-2019 


The command syntax that I'm using without success is:

get-messagetrackinglog -resultsize unlimited -Start "08/31/2021 3:00 PM" -End "09/01/2021 2:00 AM" | format-list send*,Recipient* | set-content -path "C:\admin\out.txt"


Here is the first line of the output of the above:

Microsoft.PowerShell.Commands.Internal.Format.FormatEntryData


Not very useful.


What am I missing?


Thanks much.




ExchangeMicrosoft

Avatar of undefined
Last Comment
Dwight Baer

8/22/2022 - Mon