• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 318
  • Last Modified:

Exchange 2007 message count

I am trying to get a total count of all emails that have been sent or received through my exchange 2007 server and I just want to look at it for 1 day. Can you recommend the best way to get this info. I tried to use perfmon on the exchange 2007 server by adding a monitor but it didn't collect any data. Can someone tell me a good shell command that will give me this by using the messagetrackinglog?
0
atlbearcat
Asked:
atlbearcat
  • 4
  • 3
1 Solution
 
AkhaterCommented:
the performance log should work did you run it on the hub server? what counter did you add?

the below should also do it
(Get-MessageTrackingLog -Start 09-15-2011 -ResultSize unlimited  -EventId receive).count
0
 
atlbearcatAuthor Commented:
I ran the MSExchange Transport SMTPReceive and smtpsend and selected total received and total sent. I tried your code above but it doesn't give me anything back.
0
 
AkhaterCommented:
did you run it on a hub server ?
0
Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

 
atlbearcatAuthor Commented:
Yes. We have 3 exchange servers and they all have mailbox, client access and hub transport on them and i ran the perfmon on each of them.
0
 
AkhaterCommented:
what about the script ? does it return anything if you simply run

Get-MessageTrackingLog
0
 
atlbearcatAuthor Commented:
I think I got the perfmon to work this time. Not sure why it didn't take the first time since i went through same process. Anyway, I'll just wait to see what kind of results I get. Thanks for the help.
0
 
AkhaterCommented:
the perfomrance monitor counter will reset every time you restart the transport service
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now