Page 1 of 1

Reorder Exchange transport rules in M365 - Powershell

Posted: Wed Sep 23, 2026 1:26 pm
by admin
Install the Exchange Online Powershell Module
powershell:

Code: Select all

 Install-Module -Name ExchangeOnlineManagement -Force

Connect to Exchange Online
powershell:

Code: Select all

Connect-ExchangeOnline -UserPrincipalName your-admin@yourdomain.com
View Current Rules and Order
powershell:

Code: Select all

Get-TransportRule | Sort-Object Priority | Format-Table Name, Priority, State
Reorder and Change Rule Priority
powershell:

Code: Select all

Set-TransportRule -Identity "Your Transport Rule Name" -Priority 2