Exchange 2007 Logs from Client Access Machines

A short script to make it a little easier to retrieve logs from several client access machines. A little quicker than using the Toolbox Message Tracking Log:

$strEvent = “RECEIVE”
$dteStart = “31/08/2008 12:34:00”
$dteEnd = “01/09/2008 16:44:00”
$strMessageSubject = “Email Account Owner”
Get-ExchangeServer
Where {$_.ServerRole -match ‘ClientAccess’}
ForEach {Get-MessageTrackingLog -Server $_.Fqdn -EventID $strEvent -MessageSubject $strMessageSubject -Start $dteStart -End $dteEnd }
fl Timestamp, ServerHostname, RecipientCount, MessageSubject, Sender, ReturnPath

Leave a Reply

  • (will not be published)

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>