foreach( <mailbox> in <listofmailboxes> )
{
               Set-Mailbox –Name <mailbox.name> -ForwardingAddress 
<mailbox.forwardingAddress> -DeliverToMailboxAndForward <$true/$false>
}


From: listsad...@lists.myitforum.com [mailto:listsad...@lists.myitforum.com] On 
Behalf Of John Matteson
Sent: Wednesday, May 10, 2017 4:36 PM
To: exchange@lists.myitforum.com
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.

Reply via email to