Is there a cmd to add a secondary SMTP address to a Mail Contact. I want to take a Mailbox which is currently being FWD to an Office 365 account and Delete that Mailbox from my Exchange. I have a Mail Contact for the Office 365 account in place. I can set a Server side rule for the fwd using this:
New-InBoxRule -Mailbox "UserName" -Name "Forward to partner" -ExceptIfHasAttachment $false -DeleteMessage $true -ForwardTo SMTP: "email address"
I just need a CMD to add the deleted address as a secondary SMTP to the contact. I know how to do this manually through EMC. A CMD will help me do multiple at once.
Thank you
Set-Mailbox *User* -EmailAddresses @{Add=’User2@domain.com’}