Solved

Exchange 2007/2010 cmdlets for adding email addresses

Posted on 2011-02-21
2
551 Views
Last Modified: 2012-05-11
Are there Exchange 2007/2010 cmdlets for adding email addresses to specific users.
0
Comment
Question by:ENTPF
2 Comments
 
LVL 10

Expert Comment

by:abhijitmdp
ID: 34942757
0
 
LVL 58

Accepted Solution

by:
tigermatt earned 500 total points
ID: 34943337

The easiest way would be to use a hashtable.

Set-Mailbox <Alias> -EmailAddresses @{Add='mynewaddress1@domain.com','mynewaddress2@domain.com'} 

Open in new window


Your hash table can take the format of any of the following:

@{Add='mynewaddress@domain.com'} (for just adding one address)
@{Remove='myoldaddress@domain.com'} (for removing an address - comma-separate the values to remove multiple addresses)

If you want to set an address as the primary address, you need to prefix it with SMTP: in the hash table. However that will only work if the user has Email Address Policy application disabled.

-Matt
0

Featured Post

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Exchange 2010 Email server black listed 14 78
powershell mailbox move question 8 43
Mail Flow in EXCHANGE 2010 2 54
Exporting days since LastLogonTime 5 30
Lotus Notes – formerly IBM Notes – is an email client application, while IBM Domino (earlier Lotus Domino) is an email server. The client possesses a set of features that are even more advanced as compared to that of Outlook. Likewise, IBM Domino is…
This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
In this video we show how to create a Resource Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: Navigate to the Recipients >> Resources tab.: "Recipients" is our default selection …
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question