Skip to main content

SYNOPSIS

Get mailbox forwarding configuration

SYNTAX

DESCRIPTION

Get mailbox forwarding configuration from ForwardingAddress, ForwardingSMTPAddress and Inbox Rules

EXAMPLES

EXAMPLE 1

Returns all mailboxes with forwarding configuration.

EXAMPLE 2

Returns forwarding configuration for specified mailboxes.

EXAMPLE 3

Returns only mailboxes with ForwardingAddress or ForwardingSMTPAddress set.

EXAMPLE 4

Returns only mailboxes with inbox rules that forward emails.

EXAMPLE 5

Exports results to an Excel file.

PARAMETERS

-ExchangeOnPremise

{{ Fill ExchangeOnPremise Description }}

-ExportPath

Optional output directory for the Excel export (defaults to the user profile).

-ExportToExcel

If specified, exports the results to an Excel file in the user’s profile directory.

-ForwardingAndForwardingSMTPOnly

{{ Fill ForwardingAndForwardingSMTPOnly Description }}

-Identity

{{ Fill Identity Description }}

-InboxRulesOnly

{{ Fill InboxRulesOnly Description }}

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

System.String[]

OUTPUTS

NOTES

Priority 1: ForwardingAddress Priority 2: ForwardingSMTPAddress Priority 3: Inbox Rules