Skip to content

Latest commit

 

History

History
36 lines (28 loc) · 1.99 KB

Set-CIPPMailboxForwarding.md

File metadata and controls

36 lines (28 loc) · 1.99 KB

Set-CIPPMailboxForwarding

SYNOPSIS

Sets mailbox forwarding for a user.

DESCRIPTION

The Set-CIPPMailboxForwarding function sets mailbox forwarding for a user. It allows you to specify the customer tenant ID, user ID, and various forwarding options such as external and internal email addresses, disabling forwarding, and keeping a copy of forwarded emails.

PARAMETERS

-CustomerTenantID

Foo Foo
The ID of the customer tenant.

-UserID

Foo Foo
The ID of the user whose mailbox forwarding needs to be set.

-DisableForwarding

Foo Foo Foo
Specifies whether to disable mailbox forwarding. By default, it is set to $false.

-ForwardExternalEmailAddress

Foo Foo
The external email address to forward emails to.

-ForwardInternalEmailAddress

Foo Foo
The internal email address to forward emails to. This parameter accepts an array of email addresses.

-KeepCopy

Foo Foo Foo
Specifies whether to keep a copy of forwarded emails. By default, it is set to $false.

EXAMPLE 1

PS > Set-CIPPMailboxForwarding -CustomerTenantID "contoso.onmicrosoft.com" -UserID "john.doe@contoso.onmicrosoft.com" -ForwardExternalEmailAddress "john.doe@example.com" -KeepCopy $true