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
HI Diane, what should this be saved as?
-Ellis
The stats? Save them as a Text file.
Logfiles are empty! Do I have to edit the script for my environment?
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.
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
Yes, it gets yesterday's stats.
Hi Diane... the script is not working. There is an error in 189 line with $_.address variable...
It could mean there was a bad copy and paste. I don't see any known error for this in the Q&A section.