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.

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.

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.

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.






















