Commands › Exchange Online
Get-MailTrafficPolicyReport
View statistics about messages that were affected by data loss prevention (DLP) policies and transport rules for the last 90 days.
Quick start script
# Get-MailTrafficPolicyReport — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-ExchangeOnline -CertificateThumbprint $thumb -AppId $appId -Organization $org
# 2. Run and inspect
Get-MailTrafficPolicyReport | Format-List
# 3. Export for evidence / drift tracking
Get-MailTrafficPolicyReport | Export-Clixml .\MailTrafficPolicyReport-$(Get-Date -Format yyyyMMdd).xml
Syntax
Get-MailTrafficPolicyReport [-Action <MultiValuedProperty>]
[-AggregateBy <String>]
[-Direction <MultiValuedProperty>]
[-DlpPolicy <MultiValuedProperty>]
[-Domain <MultiValuedProperty>]
[-EndDate <DateTime>]
[-EventType <MultiValuedProperty>]
[-Page <Int32>]
[-PageSize <Int32>]
[-ProbeTag <String>]
[-StartDate <DateTime>]
[-SummarizeBy <MultiValuedProperty>]
[-TransportRule <MultiValuedProperty>]
[<CommonParameters>]
Parameters (13)
Message Center changes mentioning this command
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.