How to add Proxy SMTP Address from Exchange Management Shell

Microsoft’s article related to adding an email address to an existing mailbox in 2010 is here:

http://technet.microsoft.com/en-us/library/bb123794.aspx

However, I really didn’t like how they do it as it relies on multiple line entries to add a single address.  So I sought out the command below to be able to add an address with a single line.


Set-Mailbox [user alias] -EmailAddresses (((Get-Mailbox [user alias]).EmailAddresses)+="smtp:proxy_address@domain.com")

Better yet, by using Excel and some nifty concatenate work, you can make yourself a nice spreadsheet to apply multiple changes at once.  If you didn’t already know, you can copy and paste in multiple commands at once, and the Exchange 2010 Powershell will process each line as an independent command.

…scripting for dummies I guess : )

Advertisements

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s