Exchange PowerShell: Get Mailbox Forwarding Rules Instantly

Mark Jun 01, 2026

Managing email flow and user permissions is a critical aspect of an Exchange administrator's daily responsibilities. One specific area that requires careful oversight is the configuration of mailbox forwarding rules, which dictate how incoming messages are redirected to other destinations. Utilizing PowerShell provides the most efficient and precise method to audit, configure, and remove these settings across your environment. This guide focuses specifically on how to leverage the Exchange Management Shell to get mailbox forwarding rules effectively.

Understanding Mailbox Forwarding vs. Transport Rules

Before diving into the cmdlets, it is essential to distinguish between mailbox-level forwarding and transport rules. The commands discussed here specifically target the settings configured directly on the mailbox, often referred to as delegate access or folder-level forwarding. These rules reside on the mailbox server and move messages based on criteria defined within the mailbox itself. In contrast, Transport Rules act on the Hub Transport server and apply to messages as they traverse the network, independent of the user's Outlook client settings.

Retrieving Current Forwarding Settings with Get-Mailbox

The primary cmdlet for viewing these configurations is Get-Mailbox. By piping this command to Get-MailboxFolderInformation or inspecting the delivery options, you can see where messages are being sent. The following command provides a high-level view of delivery options for all mailboxes, highlighting those with specific forwarding or routing configured.

Uninstall-package Not Working: How to Force it
Uninstall-package Not Working: How to Force it

Basic Retrieval of Delivery Options

To quickly audit mailboxes for forwarding settings, you can use the following approach to list the primary SMTP address and the delivery options flags.

Command Description
Get-Mailbox -ResultSize Unlimited | Select-Object DisplayName, PrimarySmtpAddress, DeliveryOption Returns a list of mailboxes showing their display name, email address, and the current delivery setting (e.g., DeliverToMailboxAndForward).

Filtering Forwarding Recipients

While the DeliveryOption flag tells you *if* forwarding is enabled, it does not reveal the *email address* where the mail is being sent. To retrieve the actual forwarding address, you need to inspect the mailbox's `ForwardingSmtpAddress` property. This is particularly useful when you need to verify compliance or ensure that users are not redirecting mail to external domains without approval.

Specific Property Extraction

The following command isolates the display name and the forwarding address, returning only those mailboxes where the forwarding address is not null. This filters out mailboxes that have the "Deliver to Mailbox and Forward" flag set but actually have no active rule.

Microsoft says transport/DLP rule conflicts have forced it to pull Exchange Server update
Microsoft says transport/DLP rule conflicts have forced it to pull Exchange Server update

Get-Mailbox -ResultSize Unlimited | Where-Object { $_.ForwardingSmtpAddress -ne $null } | Select-Object DisplayName, ForwardingSmtpAddress

Advanced Folder-Level Redirection

Exchange allows for more granular control, where rules can move copies of specific items (like emails from a certain sender) to a different folder, rather than the entire inbox. To view these complex rules, you need to interact with the folder configurations directly. This is where the combination of Get-Mailbox and folder statistics becomes powerful.

Examining Folder Permissions and Rules

To see the detailed folder structure and permissions that might indicate forwarding or delegation, you can gather folder information for a specific user. This helps identify if a manager's mailbox is forwarding to an assistant's private folder.

How to Purge or Delete a Disconnected Mailbox in Exchange 2007 - geekyprojects.com
How to Purge or Delete a Disconnected Mailbox in Exchange 2007 - geekyprojects.com

Get-MailboxFolderInformation -Identity "Manager_Alias" -FolderScope DeletedItems, MsgFolderRoot, SentItems

Identifying Rules via Mapi Folder Properties

For the most comprehensive view, including client-side rules that might not be visible in the basic mailbox settings, administrators can query the underlying MAPI properties. This involves accessing the PR_RULES_DATA property, which contains the binary definition of all Outlook rules. While parsing binary data is complex, exporting this data allows for deep forensic analysis of why a message is being routed incorrectly.

Exporting Rule Data for Analysis

The following sequence retrieves the binary rule data for a specific mailbox. This is usually the final step for troubleshooting when standard cmdlets do not reveal the source of the forwarding behavior.

Get-Mailbox -Identity "User_Login" | Get-MailboxRegionalConfiguration | Select-Object -ExpandProperty ConfigObject

Common Use Cases and Parameters

When executing these commands, it is beneficial to understand the specific parameters that refine your search. You can target specific databases, filter by server name, or look for specific user accounts. Combining these parameters ensures you are not pulling unnecessary data from the entire Exchange organization, which can slow down the process.

Targeted Query Examples

  • Single Mailbox Audit: Get-Mailbox -Identity "jdoe" | Select-Object DisplayName, ForwardingSmtpAddress, DeliverToMailboxAndForward
  • Database Level Scan: Get-Mailbox -Database "DB01" | Where-Object { $_.DeliverToMailboxAndForward -eq $true }
  • Excluding Arbitration: Get-Mailbox -Arbitration -ExcludeArbitrationMailbox $true | Get-MailboxFolderInformation

Troubleshooting and Permissions

When running these cmdlets, you might encounter access denied errors, particularly when attempting to view another user's mailbox settings. Ensure your account holds the necessary Management roles, specifically the "Mailbox Import Export" or "View-Only Mailbox" roles. If you are auditing a large number of users, it is often best to run the command with the -DomainController parameter to specify a global catalog, which can sometimes resolve latency or replication issues that obscure the current rule status.

By mastering these PowerShell techniques, administrators can maintain strict control over email routing, ensuring that sensitive information remains within the corporate firewall unless explicitly permitted.

the index match poster is displayed in green and orange colors, with information on each side
the index match poster is displayed in green and orange colors, with information on each side
Less Competition = More Attention

Your customers’ inbox is full, but their mailbox is not.

Email gets ignored.
Social media gets skipped.

But a well-timed postcard gets seen.

Less competition means more attention and more opportunities.

If you are not using direct mail, your competitors eventually will be.

Let ClickMarshall help you stand out where others are not showing up.

#ClickMarshall #MarketingAutomation #DirectMail #LeadGeneration #BusinessGrowth #StandOut
Less Competition = More Attention Your customers’ inbox is full, but their mailbox is not. Email gets ignored. Social media gets skipped. But a well-timed postcard gets seen. Less competition means more attention and more opportunities. If you are not using direct mail, your competitors eventually will be. Let ClickMarshall help you stand out where others are not showing up. #ClickMarshall #MarketingAutomation #DirectMail #LeadGeneration #BusinessGrowth #StandOut
How to Forward Your Mail When Moving
How to Forward Your Mail When Moving
Unlocking the Mailbox Rule: What You Need to Know!
Unlocking the Mailbox Rule: What You Need to Know!
How to Use Rules to Manage Your Outlook.com Email
How to Use Rules to Manage Your Outlook.com Email
the mailbox rental flyer is red and white
the mailbox rental flyer is red and white
How to Blast Through Your Emails in Microsoft Outlook
How to Blast Through Your Emails in Microsoft Outlook
Add a New User to a Windows Domain Using Exchange 2007, 2010 - geekyprojects.com
Add a New User to a Windows Domain Using Exchange 2007, 2010 - geekyprojects.com
Do you need shipments from Poland to anywhere in the world
Do you need shipments from Poland to anywhere in the world
15 Advanced Tasks PowerShell Can Handle in Windows 10
15 Advanced Tasks PowerShell Can Handle in Windows 10
the mailbox and box are labeled in two different languages
the mailbox and box are labeled in two different languages
Use Outlook Rules to Prevent "Oh No!" After Sending Emails
Use Outlook Rules to Prevent "Oh No!" After Sending Emails
an advertisement for post office abbreviations
an advertisement for post office abbreviations
How to Troubleshoot Outlook Sync Issues - Complete Guide
How to Troubleshoot Outlook Sync Issues - Complete Guide
25 K Mail access base(fr,de) 100% private - Combo List - Combolist
25 K Mail access base(fr,de) 100% private - Combo List - Combolist
Archiving emails in Outlook: Here's what you need to know
Archiving emails in Outlook: Here's what you need to know
How to Set Up Automatic Forwarding in Outlook - Make Tech Easier
How to Set Up Automatic Forwarding in Outlook - Make Tech Easier
Become a Pro Outlook User By Avoiding Common Mistakes
Become a Pro Outlook User By Avoiding Common Mistakes
Use Conditional Formatting to Make Important Outlook Messages Stand Out
Use Conditional Formatting to Make Important Outlook Messages Stand Out
What is an Email Backup Server?
What is an Email Backup Server?
How to Get Outlook Notifications for Important Emails Only
How to Get Outlook Notifications for Important Emails Only
Difference Between Outlook and Exchange
Difference Between Outlook and Exchange
How to Use Microsoft Outlook Rules to Manage Your Inbox - Make Tech Easier
How to Use Microsoft Outlook Rules to Manage Your Inbox - Make Tech Easier