Published 2025-06-18 by Josue Valentin
Managing mailbox inbox rules in Exchange Online with PowerShell can save admins time and ensure consistent configurations across users. However, certain quirks and errors frequently cause confusion.
Prerequisites
- Exchange Online PowerShell module installed
- Exchange admin privileges
- Active session via Connect-ExchangeOnline
Connecting to Exchange Online
Install-Module -Name ExchangeOnlineManagement
Connect-ExchangeOnline -UserPrincipalName [email protected]
Creating an Inbox Rule
# Forward emails from specific sender to another mailbox
New-InboxRule -Mailbox [email protected] \\
-Name "Forward from VIP" \\
-From "[email protected]" \\
-ForwardTo "[email protected]"
Common Pitfalls
- Rule priority conflicts: Rules execute in priority order; check for conflicts
- Forwarding limits: External forwarding may be blocked by policy
- Hidden rules: Some rules created by Outlook may not appear in Get-InboxRule
- Delegate permissions: Ensure proper permissions before modifying others' mailboxes
Viewing Existing Rules
Get-InboxRule -Mailbox [email protected] | Format-List Name, Priority, Enabled
Removing a Rule
Remove-InboxRule -Mailbox [email protected] -Identity "Rule Name"
For complex Exchange administration tasks, contact our team for assistance.