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 admin@yourdomain.com
Creating an Inbox Rule
# Forward emails from specific sender to another mailbox
New-InboxRule -Mailbox user@domain.com \\
-Name "Forward from VIP" \\
-From "vip@external.com" \\
-ForwardTo "archive@domain.com"
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 user@domain.com | Format-List Name, Priority, Enabled
Removing a Rule
Remove-InboxRule -Mailbox user@domain.com -Identity "Rule Name"
For complex Exchange administration tasks, contact our team for assistance.