How to Find an Exchange Mail Flow Rule by Rule ID
Question details
The user needs to identify a specific Exchange mail flow rule using only its GUID or Rule ID obtained from message tracking logs.

- Product
- Microsoft Exchange Online
- Device & OS
- not provided
- Scenario
- Troubleshooting email routing or analyzing Exchange message tracking logs where only a rule GUID is displayed instead of the rule name.
- Observed behavior
- Message tracking logs only display the mail-flow rule GUID, requiring the administrator to manually map this identity to the actual transport rule.
Ensure you have the Exchange Online PowerShell module installed and that your account holds Global Administrator or Exchange Administrator privileges.
Locate Transport Rule via Exchange Online PowerShell
Use a direct PowerShell cmdlet to query the Exchange server and retrieve the specific transport rule by its unique ID.
Because the Exchange Admin Center (EAC) does not natively allow searching for rules by their GUID, PowerShell is the most effective method for mapping an ID from message tracking logs to its corresponding rule.
Open PowerShell as an administrator and run the 'Connect-ExchangeOnline' cmdlet to authenticate with your administrator credentials.
Execute the command 'Get-TransportRule -Identity <transport-rule-ID>', replacing '<transport-rule-ID>' with the exact GUID found in your message tracking logs.
Press Enter to retrieve the rule details. The output will display the rule's actual display name, applied conditions, and associated actions.

Manage Your IT Documentation with WPS Office
While WPS Office does not manage Microsoft Exchange server configurations, it is a fantastic, lightweight alternative to Microsoft Office for writing administrative reports, documenting IT procedures, and analyzing message tracking data in spreadsheets.
- 1. Download WPS Office: Visit the official WPS website and download the free installation package for your operating system.
- 2. Install the Software: Run the downloaded installer and follow the on-screen prompts to set up WPS Office on your computer.
- 3. Start Documenting: Open WPS Writer or WPS Spreadsheet to begin creating detailed IT configuration reports or logging your PowerShell troubleshooting steps.

Frequently Asked Questions
Why does message tracking only show a rule GUID instead of the rule name?
For performance and systemic accuracy, Exchange system logs and message tracking primarily record the unique identifier (GUID) of the transport rule rather than its display name, which could potentially be changed by administrators over time.
What should I do if the PowerShell command returns an object not found error?
Ensure that you have copied the entire GUID correctly without any trailing spaces. If the rule was recently deleted, its GUID may still appear in older message tracking logs but will no longer be queryable in Exchange Online PowerShell.
Can I find the rule ID using the Exchange admin center (EAC) interface?
The Exchange admin center displays the descriptive names and settings of mail flow rules, but it does not natively expose the underlying rule GUIDs for search purposes. PowerShell must be used to map a GUID back to a specific rule.




