Effectively managing email flow and security policies often requires oversight of internal and external communication pathways. For IT professionals administering Microsoft Exchange environments, the ability to audit and control these pathways is critical for compliance and data loss prevention. The Exchange PowerShell cmdlet Get-MailboxForwardingRules provides a direct and powerful method to inspect the forwarding configurations set on individual mailboxes.
This command retrieves the rules that define how incoming email is redirected, either to another mailbox or to an external email address. Understanding the specific syntax and output of Get-MailboxForwardingRules is essential for troubleshooting user complaints about missing emails or verifying that organizational policies are being enforced correctly. Unlike graphical tools, this command-line approach allows for rapid querying across hundreds of mailboxes in a scripted manner.
Understanding Mailbox Forwarding in Exchange
Before diving into the cmdlet itself, it is important to distinguish the specific type of forwarding this command addresses. Exchange supports two primary categories of forwarding: delivery forwarding and access forwarding. Delivery forwarding, often configured on mailboxes, automatically redirects incoming messages to a different destination while keeping a copy in the original mailbox.

Access forwarding, on the other hand, is typically associated with delegate access and rules that redirect messages based on specific conditions. The Get-MailboxForwardingRules cmdlet specifically targets the delivery forwarding settings stored directly on the mailbox object, providing a snapshot of where emails are being sent when a user is away or when a rule is actively redirecting traffic.
Basic Syntax and Common Parameters
The fundamental structure of the command relies on identifying the target mailbox. Administrators can specify a single identity or pipeline multiple identities from previous commands. The most common usage involves querying a specific user by their name or alias.
For broader analysis, combining this cmdlet with Get-Mailbox allows for organization-wide audits. This approach is invaluable for security teams conducting regular compliance checks or troubleshooting systemic issues with email delivery across the entire infrastructure.

Example: Querying a Single User
To check the forwarding rules for a specific user, the Identity parameter is used. This returns the active forwarding configuration, including the destination address if one is set.
| Command | Description |
|---|---|
| Get-MailboxForwardingRules -Identity "j.smith" | Retrieves the forwarding rules for the mailbox belonging to j.smith. |
Example: Bulk Query via Pipeline
For administrative efficiency, querying multiple mailboxes simultaneously is often necessary. By leveraging the pipeline, administrators can apply the cmdlet to a list of users filtered by specific criteria.
| Command | Description |
|---|---|
| Get-Mailbox -ResultSize Unlimited | Get-MailboxForwardingRules | Pipes all mailboxes into the cmdlet to retrieve forwarding rules for every user in the organization. |
Interpreting the Output
The output of Get-MailboxForwardingRules is typically a collection of objects that detail the active forwarding settings. Key properties to examine include the rule name, the enabled status, and the forwarding address. In environments with complex routing logic, you might observe multiple rules with varying conditions.

It is important to note that this command does not modify any settings; it is purely a diagnostic tool. If the output returns null or is empty, it indicates that no active forwarding rules are configured for that specific mailbox. This distinction is vital for distinguishing between a correctly configured "do not forward" setting and an unchecked rule that might be causing delivery failures.
Troubleshooting and Security Implications
When investigating delivery issues, comparing the results of this command against the user's expectations is the fastest path to resolution. Misconfigured forwarding is a common culprit when users report emails going missing. Furthermore, from a security perspective, unauthorized forwarding rules can indicate a compromised account or an insider threat attempting to exfiltrate data.
Regularly running scripts that utilize Get-MailboxForwardingRules helps maintain visibility into these configurations. By establishing a baseline of normal forwarding activity, security operations centers can quickly detect anomalies that warrant further investigation, ensuring the integrity of the communication channels within the Exchange environment.






















