I recently spent some time at a client that was asking for various pieces of information from their Microsoft Exchange server. Most of what they wanted was quickly and easily accessible through the Exchange PowerShell commandlet get-messagetrackinglog.
First up was a simple command to show all entries from the message tracking log where the recipient of the email was test.comain.com. For this I used:
To find all emails from a particular sender and then export to a .csv file I used:
If you want to track an individual message and output to .csv and all you have to go on is the message ID you can use:
If you want to find all emails from a particular sender between a certain time period and export to a .csv file you can use:
To find a sender from a certain domain and a recipient from a certain domain and then export to a .csv file use:
To get a list of all messages with a particular subject, between a certain date and then export them to .csv use: