I'm looking for a way to see a report by user of how many recipients they send to in a day. This is in preperation of moving to Office365 and thus far I have not found a 'good' way to do this. I have messed with it for a while now and have the
following script running in my environment daily:
Add-PSSnapin Microsoft.Exchange.Management.Powershell.Admin
$filename = "MessagesSent {}" -f (Get-Date).AddDays(-1)
$start = (Get-Date).AddDays(-1)
$end = (Get-Date)
Get-transportserver | Get-MessageTrackingLog -resultsize unlimited -Start $start -End $end | where-object {} | where-object {} | select TimeStamp, Sender, RecipientCount | Group-Object Sender | select Count, Name | Sort-Object Count -descending | Format-Table -AutoSize | Out-File D:\ExchangeMessagesDelivered\$filename.txt
Get-transportserver | get-messagetrackinglog -resultsize unlimited -Start $start -End $end | where-object {} | where-object
{} | select TimeStamp, EventID, Sender, RecipientCount | Format-Table -AutoSize | Out-File D:\ExchangeMessagesDelivered\Verbose_$filename.txt -width 200
The first get-transportserver | get-messagetrackinglog does not give me accurate results so I was trying to add more eventID's in. This gives me more information but now I'm getting messages counted more than once..
Anyone have any ideas?
Jason Meyer