Exchange 2010 message tracking script

Dear Team,

I need to run the script which will provide the details about mailflow counts in our edge server.

I have to get the count based on the Sender or email address or recipients

Please help me on this
LVL 7
Kamalasekar ParthasarathyMessaging SupportAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Tony JohncockLead Technical ArchitectCommented:
Kamalasekar ParthasarathyMessaging SupportAuthor Commented:
I need to get a report like.

How many had sent a mail during this month based on clientip, sender id

I have to provide the list and the count as well.

I tried the below command for one day and got the details but need to get the counts how many numbers for each sender email address:

get-messagetrackinglog -start "03/10/2012 00:00:01" -end "03/26/2012 23:59:59" -eventid "receive" -resultsize unlimited | export-csv
Tony JohncockLead Technical ArchitectCommented:
You could use -sender and -recipient appended to that line

You should also be able to use the sort-object command to sort by sender, time etc.

Some more details on your command:

http://technet.microsoft.com/en-us/library/bb124926(v=exchg.80).aspx

Realise it says 2007 but the commands should be the same for 2010
prashanthdCommented:
Try the following

get-messagetrackinglog -start "03/10/2012 00:00:01" -end "03/26/2012 23:59:59" -eventid "receive" -resultsize unlimited | group-object sender |export-csv

Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Kamalasekar ParthasarathyMessaging SupportAuthor Commented:
partial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Exchange

From novice to tech pro — start learning today.