That worked perfectly!!!
Problem solved. Thanks very much.
Main Topics
Browse All TopicsA default email address was added to a large group of external mail contacts.
Each has a unique email address to an email address outside of our organization that needs to be kept.
The default email address that was also added to all of those contacts has our default domain.
Is there a better way than individually opening the properties of all 1500 contacts to remove the extra email address?
Anybody know how this could be done using Exchange Management Shell?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
I spoke too soon. The result of running those two cmdlets was that the list of Email Addresses was empty and email sent to any my contacts bounced with an error message indicating there wasn't a primary email address.
I needed to create a csv file with the identity and email address of the mail contacts I wanted to modify.
I did that first by running: Export-CSV -path C:\Export.csv. That gave me my list of users. All columns were deleted except for Identity, ExternalEmailAddress, and EmailAddresses. The email address from the ExternalEmailAddress field was copied to the EmailAddresses field and removed SMTP:. Now the ExternalEmailAddress column was also removed.
So my resulting csv file looked like this:
#TYPE Microsoft.Exchange.Data.Di
Identity,E
domain.
Here's the cmdlet I used modify mailcontacts based on the values in the csv:
Import-CSV -path C:\ImportModification.csv | ForEach-Object -Process {Set-MailContact -Identity $_.Identity -EmailAddresses $_.EmailAddresses}
Business Accounts
Answer for Membership
by: endital1097Posted on 2009-11-06 at 12:14:12ID: 25762649
disable the email address policy for each mail contact first :$false
get-mailcontact -resultsize unlimited | set-mailcontact -emailaddresspolicyenabled
then update the email address
get-mailcontact -resultsize unlimited | set-mailcontact -emailaddresses $_.PrimarySmtpAddress