foreach( <mailbox> in <listofmailboxes> )
{
Set-Mailbox –Name <mailbox.name> -ForwardingAddress
<mailbox.forwardingAddress> -DeliverToMailboxAndForward <$true/$false>
}
From: [email protected] [mailto:[email protected]] On
Behalf Of John Matteson
Sent: Wednesday, May 10, 2017 4:36 PM
To: [email protected]
Subject: [Exchange] Forwarding to a contact in O365.
Question for the group:
I have a bunch of mailboxes in O365 that need have forwarding set to a contact
address. I'd like to do this via Powershell (there are 79 mailboxes that need
to be set this way).
Is there a way of doing this?
Thanks.
John M.