Hey Everyone -
I need some help with getting the number of messages from a list of users in a CSV. I only need the count in the past 30 days. Here is what I have I just can't figure out how to select the Name,Count values.
$data = import-csv "c:\My Scripts\senders.csv"
foreach ($i in $data)
{ $sender = $i.mailbox;
Get-TransportService | Get-MessageTrackingLog -ResultSize Unlimited -Sender $sender -EventID Send -Start (Get-Date).AddDays(-30) -End (Get-Date) | Measure-Object | Select-Object Name,Count | Export-CSV c:\tmp\external_mailbox.csv -NoTypeInformation
}
Thanks for any help provided