Send and recceive email count for all users
Hi Khaja, try these command and check it out: Get-MessageTrackingLog -Recipients user01@yourdomain.com -start “10/22/2011 00:00:00” -end “11/21/2011 11:59:00” -EventId "receive" | measure-object Get-MessageTrackingLog -sender user01@yourdomain.com -start “10/22/2011 00:00:00” -end “11/21/2011 11:59:00” -EventId "send" | measure-object Note: you should have 6 months logs for archive this. hope this helps. Thanks & Regards, Kottees R
November 22nd, 2011 12:42pm

Thank you very much for you help , i am getting only one month count , how i can get last five months msg count? please advice ! From this point on, you would have to configure the logs so messages as old as six months are retained. 5 months from now (1 month by default plus the 5 months you've configured). Here's how to configure for 45 days: Set-TransportServer Exchange01 -MessageTrackingLogMaxAge 45.00:00:00 More information: http://technet.microsoft.com/en-us/library/aa997984(v=exchg.80).aspx I'm looking for a powershell script that would look how many e-mail messages (count) were sent and receive to all users mailbox in the past 6 months , How many users do you have? You could use the script suggested above and do the math (add results). Otherwise, I wouldn't be able to write a script that would do that - count everyone's messages and then do the addition. Just thinking out aloud, maybe use the for-each option and then something to append the results rather than overwrite previous results?
Free Windows Admin Tool Kit Click here and download it now
November 22nd, 2011 1:09pm

If you increase the number of days of logs you're going to retain, you may also need to increase the amount of disk space you dedicate to logs. You can increase the retention period and still have your logs truncated if they hit the configured disk space limit. http://mjolinor.wordpress.com/2011/02/11/how-far-back-do-your-message-tracking-logs-really-go/[string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "
November 22nd, 2011 1:31pm

Thank you very much for you help , i am getting only one month count , how i can get last five months msg count? please advice ! From this point on, you would have to configure the logs so messages as old as six months are retained. 5 months from now (1 month by default plus the 5 months you've configured). Here's how to configure for 45 days: Set-TransportServer Exchange01 -MessageTrackingLogMaxAge 45.00:00:00 More information: http://technet.microsoft.com/en-us/library/aa997984(v=exchg.80).aspx I'm looking for a powershell script that would look how many e-mail messages (count) were sent and receive to all users mailbox in the past 6 months , How many users do you have? You could use the script suggested above and do the math (add results). Otherwise, I wouldn't be able to write a script that would do that - count everyone's messages and then do the addition. Just thinking out aloud, maybe use the for-each option and then something to append the results rather than overwrite previous results?
Free Windows Admin Tool Kit Click here and download it now
November 22nd, 2011 9:05pm

If you increase the number of days of logs you're going to retain, you may also need to increase the amount of disk space you dedicate to logs. You can increase the retention period and still have your logs truncated if they hit the configured disk space limit. http://mjolinor.wordpress.com/2011/02/11/how-far-back-do-your-message-tracking-logs-really-go/[string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "
November 22nd, 2011 9:27pm

I'm looking for a powershell script that would look how many e-mail messages (count) were sent and receive to all users mailbox in the past 6 months , Is that possible? please advice Khaja Hameed
Free Windows Admin Tool Kit Click here and download it now
November 23rd, 2011 3:31am

Hi Khaja, try these command and check it out: Get-MessageTrackingLog -Recipients user01@yourdomain.com -start “10/22/2011 00:00:00” -end “11/21/2011 11:59:00” -EventId "receive" | measure-object Get-MessageTrackingLog -sender user01@yourdomain.com -start “10/22/2011 00:00:00” -end “11/21/2011 11:59:00” -EventId "send" | measure-object Note: you should have 6 months logs for archive this. hope this helps. Thanks & Regards, Kottees R
November 23rd, 2011 4:38am

Dear imkottees Thank you very much for you help , i am getting only one month count , how i can get last five months msg count? please advice ! Khaja Hameed
Free Windows Admin Tool Kit Click here and download it now
November 23rd, 2011 5:34am

You can only get accurate message counts for the time period that you have the logs for. If you only have one month of logs, then that's as far back as you'll be able to get those statistics.[string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "
November 23rd, 2011 8:00am

I go with Mjolinor...Thanks & Regards, Kottees R
Free Windows Admin Tool Kit Click here and download it now
November 23rd, 2011 8:17am

Hi Khaja, Any updates? Frank
November 24th, 2011 2:31am

Hi as advised by imkottes and le pivert i managed to give send and receive msg count to my mgr. since we have 80+ users in our oragnization, i took the send and receive msg count one by one. Thank you Exporting Mailbox tracking logs Get-TransportServer | Get-MessageTrackingLog -Start "10/24/2011 9:00AM" -End "11/21/2011 5:00PM" -EventId "DELIVER" -ResultSize Unlimited |select Sender,@{Name=”Recipients”;Expression={$_.recipients}},MessageSubject,MessageId,Timestamp,TotalBytes,EventId | export-csv C:\output.csv Receive Count for single users Get-MessageTrackingLog -Recipients user01@yourdomain.com -start “10/22/2011 00:00:00” -end “11/21/2011 11:59:00” -EventId "receive" | measure-object Send Count for single users Get-MessageTrackingLog -sender user01@yourdomain.com -start “10/22/2011 00:00:00” -end “11/21/2011 11:59:00” -EventId "send" | measure-object Message Tracking log size and max age Set-TransportServer EXCHANGE01 -MessageTrackingLogMaxDirectorySize 2GB –MessageTrackingLogMaxAge 90.00:00:00 Get-TransportServer | fl *message* Best Regards Khaja Hameed Khaja Hameed
Free Windows Admin Tool Kit Click here and download it now
November 27th, 2011 4:53am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics