Sets mailbox forwarding for a user.
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.
![]()
![]()
The ID of the user whose mailbox forwarding needs to be set.
![]()
![]()
Specifies whether to disable mailbox forwarding. By default, it is set to $false.
![]()
![]()
The internal email address to forward emails to. This parameter accepts an array of email addresses.
![]()
![]()
Specifies whether to keep a copy of forwarded emails. By default, it is set to $false.
PS > Set-CIPPMailboxForwarding -CustomerTenantID "contoso.onmicrosoft.com" -UserID "john.doe@contoso.onmicrosoft.com" -ForwardExternalEmailAddress "john.doe@example.com" -KeepCopy $true