Reorder Exchange transport rules in M365 - Powershell
Posted: Wed Sep 23, 2026 1:26 pm
Install the Exchange Online Powershell Module
powershell:
Connect to Exchange Online
powershell:
View Current Rules and Order
powershell:
Reorder and Change Rule Priority
powershell:
powershell:
Code: Select all
Install-Module -Name ExchangeOnlineManagement -ForceConnect to Exchange Online
powershell:
Code: Select all
Connect-ExchangeOnline -UserPrincipalName your-admin@yourdomain.compowershell:
Code: Select all
Get-TransportRule | Sort-Object Priority | Format-Table Name, Priority, Statepowershell:
Code: Select all
Set-TransportRule -Identity "Your Transport Rule Name" -Priority 2