Link to home
Start Free TrialLog in
Avatar of Scotch Tech
Scotch TechFlag for United States of America

asked on

Exchange 2013 - Need script to report on the amount of emails going through my exchange

Exchange 2013 script to get the quantity of emails sent or received?
Avatar of timgreen7077
timgreen7077

See below link for a script that will give you the count of the number of emails sent and received per user in your org:

https://gallery.technet.microsoft.com/office/Count-sent-and-recceived-f9c66cf7
Avatar of Scotch Tech

ASKER

any way to tell only the internal to internal emails?
You can run the following to get internal results count only.

(get-messagetrackinglog -ResultSize unlimited -Start "09/01/2018" -End "10/1/2018" | where {$_.Sender -like "*@timspcsolutions.com" -and $_.Recipients -like "*@timspcsolutions.com" -and $_.Source -eq "STOREDRIVER"}).count

Be sure to keep the parenthesis.
thanks. Before I saw this i used:

Get-TransportService | Get-MessageTrackingLog -ResultSize unlimited | ? {$_.EventId -eq DELIVER} | measure-object

It came back with a large number. I assume it worked, but don't know how accurate using this eventid is.
ASKER CERTIFIED SOLUTION
Avatar of Scotch Tech
Scotch Tech
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial