Quantcast
Viewing latest article 20
Browse Latest Browse All 37

Exchange 2013/2010/2007 Count total messages sent/received for specific user for specific period of time.

[Int] $intSent = $intRec = 0

Get-MessageTrackingLog -ResultSize Unlimited -Start "2014-08-31 23:59:59" -End "2015-03-12 17:00:00" -Sender "senderemail@email.com" -EventID submit| ForEach { $intSent++ }
Get-MessageTrackingLog -ResultSize Unlimited -Start "2014-08-31 23:59:59" -End "2015-03-12 17:00:00" -recipient "recipientemail@email.com" -EventID deliver| ForEach { $intrec++ }

Write-Host "Sent emails", $intSent

Write-Host "Received emails", $intRec


Viewing latest article 20
Browse Latest Browse All 37

Trending Articles