Exchange 2007 – number of emails sent and received internally

Reading Time: < 1 minute

Using Exchange Powershell you can run the below command to obtain the number of emails sent internally between users. The below script will output the results into a text file and store it on disk C.

Amend the code as required. Amend @domain.com to your internal domain and the dates you require the report running. Please note that the script may take a while to run if you decide to extend the dates.

get-messagetrackinglog -ResultSize unlimited -Start “01/04/2010 00:00:00” -End “30/04/2010 23:59:00” | where {$_.Sender -like “*@domain.com“}  | where {$_.Recipients -like “*@domain.com“} > “C:\emailcount.txt”

If you are copying and pasting the above code, you may need to re enter the speech marks ( ” )

Please follow and like us:

One thought on “Exchange 2007 – number of emails sent and received internally

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.