Solved

Bulk import of contacts into Exchange

Posted on 2010-08-16
5
628 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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
In-place Upgrading Dirsync to Azure AD Connect
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…
This video discusses moving either the default database or any database to a new volume.

840 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