Solved

Bulk import of contacts into Exchange

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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

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…
Local Continuous Replication is a cost effective and quick way of backing up Exchange server data. The following article describes the steps required to configure Local Continuous Replication. Also, the article tells you how to restore from a backup…
In this video we show how to create a Distribution Group 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 >>…
This video discusses moving either the default database or any database to a new volume.

920 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now