Solved

Bulk import of contacts into Exchange

Posted on 2010-08-16
5
629 Views
Last Modified: 2012-05-10
I need to import a thousand contacts into Exchange/Active Directory and into a specific OU. These conatcs are currently in a CSV file. What is the best way of importing them into Exchange 2007/Active Directory? I need these contacts to be mail-enabled.
0
Comment
Question by:larry_tsikada
  • 2
5 Comments
 
LVL 32

Accepted Solution

by:
endital1097 earned 250 total points
ID: 33448130
import-csv c:\csvfile.csv | new-mailcontact -name $_.Name -alias $_.alias -externalemailaddress $_.smtp

check the new-mailcontact cmdlet for available attributes you can populate using your csv file
0
 
LVL 6

Assisted Solution

by:Razi_Ahmed
Razi_Ahmed earned 250 total points
ID: 33449449
You could import mail contacts from CSV file to AD with Exchange Management Shell in bulk.
Make sure you have CSV file (testcontacts.csv) with DisplayName, EmailAddress.

command to import mail contacts into OU (here example I gave is OU name is testOU)

Import-Csv testcontacts.csv | ForEach { New-MailContact -Name $_.DisplayName -ExternalEmailAddress $_.EmailAddress -OrganizationalUnit "testOU" }

0
 
LVL 32

Expert Comment

by:endital1097
ID: 33450704
yes, you would need to pipe and have foreach
0
 
LVL 74

Expert Comment

by:Glen Knight
ID: 34679843
This question has been classified as abandoned and is being closed as part of the Cleanup Program. See my comment at the end of the question for more details.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article explains in simple steps how to renew expiring Exchange Server Internal Transport Certificate.
Read this checklist to learn more about the 15 things you should never include in an email signature.
In this video we show how to create an email address policy 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 Mail Flow…
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…

679 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