Reorder Exchange transport rules in M365 - Powershell

Post Reply
admin
Site Admin
Posts: 45
Joined: Mon Sep 16, 2024 5:00 pm
Contact:

Reorder Exchange transport rules in M365 - Powershell

Post: # 305Post 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
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests