Get-MailDetailTransportRuleReport and Get-MailTrafficPolicyReport Require EventType Parameter

Get-MailDetailTransportRuleReport and Get-MailTrafficPolicyReport

Action required for Exchange Online administrators!

If you’re using Get-MailDetailTransportRuleReport or Get-MailTrafficPolicyReport in PowerShell scripts or automated reporting, review them now.

From July 30, 2026, these cmdlets no longer return transport rule data by default. To retrieve transport rule results, you must explicitly specify one of the following:

-EventType TransportRuleHits
-EventType TransportRuleActionHits

Without the appropriate -EventType parameter, scripts may return incomplete or empty results, potentially affecting reporting, automation, and compliance workflows.

Recommended actions:

  • Review existing PowerShell scripts and scheduled jobs
  • Add the required -EventType parameter where transport rule data is expected
  • Validate the updated scripts before deploying to production

This change affects only Get-MailDetailTransportRuleReport and Get-MailTrafficPolicyReport. Other Exchange Online cmdlets are not impacted. If your organization depends on transport rule reporting, updating your scripts should be a priority to ensure reporting continues to work as expected.

Write a Comment

Leave a Comment

Your email address will not be published. Required fields are marked *

Subscribe to Newsletter

Subscribe to our email newsletter to get the latest posts delivered right to your email.
Powered by Amail.