here is a realy good web site with useful commands
http://exchangeserverpro.com/exchange-2010-message-tracking-log-search-powershell
[PS] C:\Windows\system32>$start=(get-date).addDays(-1)
[PS] C:\Windows\system32>$end=(ged-date)example 1: Get-MessageTrackingLog -ResultSize Unlimited |
Group-Object -Property:EventId | Sort-Object Count -Desc | Select Name,Count
example 2:
Get-TransportServer | Get-MessageTrackingLog -ResultSize unlimited -Start $start -End $end |
Where-Object {$_.EventID -eq „SEND“} | Where-Object { $_.Sender -like „*@*“ } | select TimeStamp, Sender, RecipientCount | Group-object Sender |select count, name
example3:
Get-TransportServer | Get-MessageTrackingLog -ResultSize unlimited -Start $start -End $end |
Where-Object {$_.EventID -eq „SEND“-or $_.EventID -eq „DELIVER“ } | Where-Object { $_.Sender -like „*@*“ } |
select TimeStamp, Sender, RecipientCount | Group-object Sender |select count, name