Update scripts using Get-MailDetailTransportRuleReport and Get-MailTrafficPolicyReport
Starting July 30, 2026, Get-MailDetailTransportRuleReport and Get-MailTrafficPolicyReport will return transport rule data only when the -EventType parameter (TransportRuleHits or TransportRuleActionHits) is explicitly specified. Administrators must update related scripts and automation before this date to avoid incomplete results. What and Why: To improve clarity, precision, and performance of transport rule reporting, Microsoft is updating the behavior of two Exchange Online reporting cmdlets. Starting July 30, 2026, Get-MailDetailTransportRuleReport and Get-MailTrafficPolicyReport will return transport rule data only when the request explicitly specifies the relevant EventType. This change helps ensure that reporting queries are intentional, predictable, and aligned with how transport rule events are generated and logged. This update supports enterprise‑ready manageability by reducing ambiguous results and helping administrators build more reliable automation and compliance reporting. Rollout Schedule: General Availability (Worldwide): We will begin rolling out in late July 2026 and expect to complete by late July 2026. Impact on Your Organization: Who is affected: Exchange Online administrators Security, compliance, or messaging teams Any organization using PowerShell scripts, automation, or reporting that relies on transport rule data from these cmdlets Platforms/Services: Exchange Online Exchange Online PowerShell What will happen: Get-MailDetailTransportRuleReport and Get-MailTrafficPolicyReport will no longer return transport rule results by default. Transport rule data will be returned only when one of the following parameters is explicitly included: -EventType TransportRuleHits -EventType TransportRuleActionHits Scripts or reports that do not include one of these parameters may return empty or incomplete results. This change applies only to these two cmdlets. No other Exchange Online cmdlets are affected. Action Required / Recommendations: If your organization uses these cmdlets for transport rule reporting, action is required before July 30, 2026. Recommended actions: Review all scripts, scheduled jobs, and automation that use: Get-MailDetailTransportRuleReport Get-MailTrafficPolicyReport Update queries that require transport rule results to explicitly include: -EventType TransportRuleHits or -EventType TransportRuleActionHits Validate updated scripts in a non‑production or test context. Update internal documentation and operational runbooks. Notify messaging and security operations teams of this change. Compliance considerations: This change alters how admins retrieve and report on transport rule data for compliance and auditing purposes. Message ID: MC1323250
The post Update scripts using Get-MailDetailTransportRuleReport and Get-MailTrafficPolicyReport appeared first on M365 Admin.
Published on:
Learn moreWe can help you with Update scripts using Get-MailDetailTransportRuleReport and Get-MailTrafficPolicyReport
If you want help implementing, troubleshooting, or improving this product, contact us and we’ll point you in the right direction.
Related posts
Microsoft Teams: Enhanced real-time alerting rule management in the Teams admin center
Microsoft Teams will enhance Real-Time Alerting rule management in the Teams admin center by enabling rule duplication, bulk user uploads, and...
Copilot Studio – Use MCP-compliant tools in agent workflows
We are announcing the ability to use MCP (model context protocol) – compliant tools in agent workflows in Microsoft Copilot Studio. This...
Microsoft Teams: Personal message reminders for chat and channels
Microsoft Teams will introduce personal message reminders for chat and channel messages in October 2026. Users can set, manage, and receive no...
M365 Copilot: Tell Copilot what you need directly from the Copilot button in Word, Excel, and PowerPoint
Microsoft 365 Copilot adds a new prompt input directly on the Copilot button in Word, Excel, and PowerPoint for faster, contextual content cre...
Microsoft Outlook for iPad: Minimize email drafts and return to them later
Outlook for iPad will allow users to compose emails in a separate window and minimize drafts to return later, enhancing multitasking. This fea...
Microsoft Purview eDiscovery: Select user-owned SharePoint Embedded containers as a data source
Microsoft Purview eDiscovery will support selecting user-owned SharePoint Embedded containers as data sources for cases, searches, and holds s...
Microsoft Purview: Removing pay-as-you-go requirements for Edge for Business DLP unmanaged app protections
Starting mid-October 2026, Microsoft Purview will remove the pay-as-you-go billing requirement for inline collection and DLP policies protecti...
Data Privacy: Microsoft Online Services Subprocessor Disclosure
This notice provides an update to the Microsoft Online Services Subprocessors List. Microsoft may engage non-Microsoft organizations to help p...
Microsoft Graph: User.ReadBasic.All will no longer allow reading user app role assignments and license details
User.ReadBasic.All will no longer provide access to user app role assignments and license details starting mid-September 2026 to fix a securit...
30-Day Reminder: Windows Server 2022 will reach end of mainstream support on October 13, 2026
On October 13, 2026, Windows Server 2022 will reach end of mainstream support. The October 2026 security update will be the last mainstream su...