Establishes mail forwarding from an on-premises Microsoft Exchange Server account to the corresponding mailbox in Microsoft ...

Establishes mail forwarding from an on-premises Microsoft Exchange Server account to the corresponding mailbox in Microsoft Exchange Online. The cmdlet cleans up local mailboxes.   E-mail forwarding is performed by setting up an alternate recipient, or through the target address on a mail-enabled user. This task uses a directory object or a mailbox meta object as input. It then matches with an existing account in the Exchange Online service, and establishes a mail forward to that account.