viernes, 2 de noviembre de 2012

POWERSHELL: revisando mails filtrados por anti-spam en Exchange 2010


Salida de correos desde la Organización hacia INET
Get-MessageTrackingLog -start "02/11/2012 10:15:00AM" -ResultSize Unlimited -EventId "SEND" | where {$_.ConnectorId -eq "EdgeSync - Organization to Internet"}

Salida de correos desde EDGE hacia la Organización
Get-MessageTrackingLog -start "02/11/2012 10:15:00AM" -ResultSize Unlimited -EventId "SEND" | where {$_.ConnectorId -eq "EdgeSync - Inbound to Organization"}


Mails borrados por Content Filtering Exchange 2010
write-host (Get-AgentLog -StartDate "11/02/2012" | where {$_.Agent -eq "Content Filter Agent"} | where {$_.Action -eq "DeleteMessage"}).count


Mails rechazados por Block list provider (RBLs) Exchange 2010
write-host (Get-AgentLog -StartDate "11/02/2012" | where {$_.Agent where {$_.Reason -eq “BlockListProvider”}).count