If you are an Exchange server administrator, you more than likely spend a fair amount of time searching the Message Tracking logs. The data provided by these logs can be helpful in finding all messages with a particular subject or sent by a certain user during a specific time frame. Of course, there are two ways to search the Message logs: the Exchange Admin Center (EAC) or Exchange Management Shell. Using the GUI is perfectly fine, if that is your preference. However, if you are having to perform searches on a regular basis, the EMS is the more efficient option.
To help make your job and mine alot easier, I wrote this Powershell function that can be used to find messages based on various criteria. Check it out on Github, and let me know what you think.
https://github.com/rburrs/Powershell-Toolbox/tree/master/Exchange%20Server