From: Cornett on 22 Mar 2010 09:54 I have created a powershell message tracking script that will allow me to see all the messages sent and received greater than 20 MB in the past 7 days. This also includes all messages that have been replicated between the public folders. Is there a way to filter out the public folder messages so I do not see them? $a = "<style>" $a = $a + "TABLE{border-width: 1px;border-style: solid;border-color: black;border-collapse: collapse;}" $a = $a + "TH{border-width: 1px;Table-layout: fixed;Width: 200px;text- align:center;padding: 0px;border-style: solid;border-color: black; }" $a = $a + "TD{border-width: 1px;Table-layout: fixed;Width: 200px;text- align:center;padding: 0px;border-style: solid;border-color: black; }" $a = $a + "</style>" #Get the past 7 days of tracking logs $Today = Get-Date $Start = $Today.AddDays(-7) $End = $Today $hubs = Get-Transportserver $hubs | Get-MessageTrackingLog -ResultSize Unlimited -EventId "SEND" - Start $start -End $end | where {$_.TotalBytes -gt 20971520} | Sort- Object -property Totalbytes -Descending | Select-Object TimeStamp, Sender, @{Name="Recipients";Expression={$_.recipients}}, EventID, totalbytes | Convertto-html -Head $a –body " <IMG SRC=http://OH01LI-T48AXP/radian_logo.gif> <br></br> <H2>Send Logs</H2> " | out-file messagelog.htm $hubs | Get-MessageTrackingLog -ResultSize Unlimited -EventId "RECEIVE" -Start $start -End $end | where {$_.TotalBytes -gt 20971520} | Sort-Object -property Totalbytes -Descending | Select-Object TimeStamp, Sender, @{Name="Recipients";Expression={$_.recipients}}, EventID, totalbytes | Convertto-html -Head $a -Body " <H2>Receive Logs</H2> " | Out-file messagelog.htm -append
From: Rich Matheisen [MVP] on 22 Mar 2010 19:57 On Mon, 22 Mar 2010 06:54:47 -0700 (PDT), Cornett <cornetthd(a)gmail.com> wrote: >I have created a powershell message tracking script that will allow me >to see all the messages sent and received greater than 20 MB in the >past 7 days. This also includes all messages that have been >replicated between the public folders. Is there a way to filter out >the public folder messages so I do not see them? Each PF store should have a SMTP address. If you skip the messages to/from those addresses you should be okay. --- Rich Matheisen MCSE+I, Exchange MVP
|
Pages: 1 Prev: Save messages to disk Next: No database in Recovery Storage Group |