Solved

Bulk import of contacts into Exchange

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Disabling the Directory Sync Service Account in Office 365 will stop directory synchronization from working.
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
In this video we show how to create a Shared Mailbox 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 >> Sha…

706 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

19 Experts available now in Live!

Get 1:1 Help Now