Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 571
  • Last Modified:

Exchange 2010 CMD to add a secondary SMTP address to Mail Contact

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
0
Twhite0909
Asked:
Twhite0909
1 Solution
 
Nick RhodeIT DirectorCommented:
CMD you mean powershell?

Set-Mailbox *User* -EmailAddresses @{Add=’User2@domain.com’}
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now