Commands › Exchange Online
Get-MailDetailTransportRuleReport
View the details of messages that matched the conditions defined by any transport rules for the last 10 days.
Quick start script
# Get-MailDetailTransportRuleReport — 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-MailDetailTransportRuleReport | Format-List
# 3. Export for evidence / drift tracking
Get-MailDetailTransportRuleReport | Export-Clixml .\MailDetailTransportRuleReport-$(Get-Date -Format yyyyMMdd).xml
Syntax
Get-MailDetailTransportRuleReport [-Action <MultiValuedProperty>]
[-Direction <MultiValuedProperty>]
[-Domain <MultiValuedProperty>]
[-EndDate <DateTime>]
[-EventType <MultiValuedProperty>]
[-MessageId <MultiValuedProperty>]
[-MessageTraceId <MultiValuedProperty>]
[-Page <Int32>]
[-PageSize <Int32>]
[-ProbeTag <String>]
[-RecipientAddress <MultiValuedProperty>]
[-SenderAddress <MultiValuedProperty>]
[-StartDate <DateTime>]
[-TransportRule <MultiValuedProperty>]
[<CommonParameters>]
Parameters (14)
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.