Messagetracking

Posted: January 17, 2012 in Exchange 2010, HT, Powershell
Tags: , ,

It’s often required to track the message flow in your Exchange environment. Of ourse, Exchange has it’s web-based GUI to track messages but it’s limited in function.

You should use PowerShell to analyze mailflow in a detailed level.

Output table formated. First, transport servers are selected. The result is piped into the main query phrase and filtered mathching the E-Mail subject.

Get-TransportServer | Get-messagetrackinglog -Sender “USER@DOMAIN.COM” -Start “01/15/2012 11:15:00” -End “01/15/2012 14:25:00” | Where {$_.MessageSubject -like “*Exchange*”} | ft EventId,Source,Sender,MessageSubject,Recipients -autosize

You could this output more detailed list-formated.

Get-TransportServer | Get-messagetrackinglog -Sender “USER@DOMAIN.COM” -Start “01/15/2012 11:15:00” -End “01/15/2012 14:25:00” | Where {$_.MessageSubject -like “*Exchange*”} | fl

Filter for empty subject.

Get-TransportServer | Get-messagetrackinglog -Sender “USER@DOMAIN.COM” -Start “01/15/2012 11:15:00” -End “01/15/2012 14:25:00” | Where {$_.MessageSubject -like “”} | fl

Filtering messagelog to track mails sent to a special domain.

Get-TransportServer | Get-MessageTrackingLog -Start “01/15/2012 12:00am” -ResultSize Unlimited | Where {$_.Recipients -match “googlemail.com”}

Cheers,

Chris

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s