get-help Get-MessageTrackingLog -full
you will get the full help of the cmdlet.Get-MessageTrackingLog -Server Mailbox01 -Start "03/13/2013 09:00:00" -End "03/15/2013 17:00:00" -Sender
"john@contoso.com"
$entries=@()
Get-mailbox -database "dbname" | foreach{
$entries+= Get-MessageTrackingLog -Server Mailbox01 -Start "03/13/2013 09:00:00" -End "03/15/2013 17:00:00" -Sender $_
}
$entries
But the principle is the same, you need to get all the tracking that you need
Open in new window
then actually do the query to the database like:
Open in new window