Query Message Tracking Logs on Microsoft Exchange using Powershell

Microsoft Exchange

You want to search your Microsoft Exchange message tracking logs to track an email, you can do this using a Powershell command (run from the Microsoft Exchange Powershell console), the below command will query all your Microsoft Exchange servers to find the tracking logs and then obtain all emails sent by the user “sender@domain.com” between the 23rd May 2024 08:00 and 23rd May 2024 17:00.

$Servers = Get-ExchangeServer;  $Servers | Get-MessageTrackingLog -ResultSize Unlimited -Start "5/23/2024 8:00AM" -End "5/23/2024 5:00PM" -Sender "sender@domain.com"

There are also other filters you can add to further refine your search such as “recipient”.

Leave a Reply

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