atlbearcat
asked on
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?
ASKER
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.
did you run it on a hub server ?
ASKER
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.
what about the script ? does it return anything if you simply run
Get-MessageTrackingLog
Get-MessageTrackingLog
ASKER
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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
the below should also do it
(Get-MessageTrackingLog -Start 09-15-2011 -ResultSize unlimited -EventId receive).count