Quantcast
Channel: Exchange Server 2013 - General Discussion forum
Viewing all articles
Browse latest Browse all 4521

-ForwardingsmtpAddress to multiple addresses Shell script

$
0
0

Hi, 

I use the following script to Forward incoming mail to another inbox, but keeping the copy in the original mailbox:

Set-Mailbox -Identity "Company/User" -ForwardingsmtpAddress "test@company.com" -DeliverToMailboxAndForward $true

I have notice if I run the command again it removed the first rule and replaces it with the last command, how can I add 2 Forwarding addresses in one command line, so that I can make one mailbox forward to 2 other mailboxes in one command?

Is that supported?

Thanks


Viewing all articles
Browse latest Browse all 4521

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>