• 1. London, UK
  • 2. New York, NY
  • 3. Sydney, Australia
  • 4. Melbourne, Australia
  • 5. Paris, France
  • 6. Bangalore, India
  • 7. Amsterdam, Netherlands
  • 8. San Francisco, CA
  • 9. Hong Kong
  • 10. Houston, TX

Friday, March 16, 2007

 

HOW TO: Add additional email addresses to a recipient

Posted by Bharat Suneja at 7:50 AM
When adding new email addresses to a recipient using Exchange shell, remember that EmailAddresses property/proxyAddresses attribute is a multi-valued attribute. You can use the same syntax described in the previous post "HOW TO Update multi-valued attributes in PowerShell" to add one-off email addresses that are not created by EmailAddressPolicy.

$foo = get-mailbox User1
$foo.EmailAddresses +="sales@yourdomain.com","info@yourdomain.com"
$foo | set-mailbox

The above can also be easily accomplished using the console - Recipients | select a mailbox, Distribution Group or Contact | properties | E-mail Addresses tab | Add.

Labels: , , ,

4 Comments:

March 17, 2007 12:11 AM
Blogger Louis Göhl said...

Hi Bharat,

I wanted this to work with recipients.csv as mentioned in your excellent post "Bulk creation of mailboxes using Exchange Management Shell" (http://www.exchangepedia.com/blog/2006/11/exchange-server-2007-bulk-creation-of.html)

So with this code I can use the same csv file:

Import-CSV CreateRecipients.csv | foreach {
$Temp = Get-Mailbox -identity $_.UPN
$Temp.EmailAddresses.Add($_.Emailadres1)
$Temp.EmailAddresses.Add($_.Emailadres2)
$Temp.EmailAddresses.Add($_.Emailadres3)
Set-Mailbox -Instance $Temp}

 
June 19, 2007 8:04 AM
Anonymous Anonymous said...

How can you add custom address types such as X500 from powershell?

 
August 20, 2007 5:51 PM
Blogger Bharat Suneja said...

By appending the address type, e.g.:
$foo = get-mailbox jdoe
$foo.emailaddresses += "X400:C=USA;..... "
$foo | set-mailbox

 
February 29, 2008 10:52 AM
Anonymous Anonymous said...

When the second email address is created and then I try to send to that address it gets bounced back saying the recipient does not exist.
How can I create another email address for an existing user or users who already have email addresses?

Thanks

 

Post a Comment

Links to this post:

Create a Link

<< Home