An administrator wanted to know how to get monthly stats for the internal email traffic and message sizes.
You can use a PowerShell to get traffic and message stats, and you don't even have to write your own script. There is a ready-to-use PowerShell script at Exchange 2007/2010 Email stats.
This was written to get "yesterday's" stats for each user, both internal and external, but you can consolidate the daily stats into monthly stats. See the Q &A at the above site for more information.
More PowerShell scripts for Exchange server are available in the TechNet Galley
Gregg says
Is there a new script for Exchange 2016 on-prem? No longer have CAS servers...
Ellis says
HI Diane, what should this be saved as?
-Ellis
Diane Poremsky says
The stats? Save them as a Text file.
Sigmund says
Logfiles are empty! Do I have to edit the script for my environment?
Diane Poremsky says
No, you don't need to edit it, it gets server information from the AD. I see some questions in the FAQ but didn't see an answer in a quick perusal. Sorry.
ola says
Hi Diane,
From what I can see the script gets e-mail stats for the previous day. Am I correct in thinking that is the case?
Regards,
Ola
Diane Poremsky says
Yes, it gets yesterday's stats.
Gregor says
Hi Diane... the script is not working. There is an error in 189 line with $_.address variable...
Diane Poremsky says
It could mean there was a bad copy and paste. I don't see any known error for this in the Q&A section.