Solved

Exchange 2007/2010 cmdlets for adding email addresses

Posted on 2011-02-21
2
550 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
In this video we show how to create a Contact in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Contact ta…
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 …

828 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