Exchange 2010 – Mailbox Traffic Report

View received e-mails for period:

get-messagetrackinglog -ResultSize Unlimited -Recipient -Start “09/01/2014 12:00:00 AM” -End “09/30/2011 11:59:00 PM” | select timestamp, messageid, messagesubject, sender, {$_.recipients}, totalbytes, recipientcount | export-csv c:\somefolder\user-incoming.csv

Add | measure-object to count the results;

For sent e-mails Change -Recipient with -Sender.

The maximum number of days you can search back is set by default to 30. You may want to increase it:

Get-TransportServer | Set-TransportServer -MessageTrackingLogMaxAge 180

You can replace totalbytes with @{label=”Size in MB”;Expression={$_.Totalbytes/1mb}};

If you want to output to HTML rather than CSV – end with
ConvertTo-Html timestamp, messageid, {$_.recipients}, @{label=”Size in MB”;Expression={$_.Totalbytes/1mb}}, recipientcount | set-content c:\somefolder\filename.html

This entry was posted in Exchange. Bookmark the permalink.

Leave a Reply

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