Solved

import contact list to exchange servers

Posted on 2014-02-11
6
4,150 Views
Last Modified: 2014-03-11
I would like to know how to import the contact  
List from excel file to Microsoft exchange server. Basically our company have hire someone to compile the contact list from yellow book to Excel . Today my boss has assigned me to import the contact to the exchange server because they want to send advertising email to those groups of people, please advise how to do it.
0
Comment
Question by:YaYangTeah
6 Comments
 
LVL 7

Expert Comment

by:Alex Green
ID: 39850178
Are they just contacts or do they need to have mailboxes?

If they are just contacts you should be able to generate a CSV file and then use

Import-CSV "C:\TestFile.csv" | Foreach{New-MailContact -Name $_.Name -ExternalEmailAddress $_.ExternalEmailAddress -OrganizationalUnit "Marketing"}

You obviously need to change it to work with your AD structure.
0
 
LVL 18

Expert Comment

by:suriyaehnop
ID: 39850181
You can use Exchange Management shell to bulk import (create) main contact

Import-Csv c:\FileName.csv | foreach { New-MailContact -FirstName $_.firtname -LastName $_.lastname -Name $_.Name -Alias $_.alias -ExternalEmailAddress $_.mail -OrganizationalUnit $_.OU }

Open in new window


You CSV file must have following as header:

1. FirstName
2. Name
3. Lastname
4. Email Address
5. Organization Unit name (optional), to put all contacts on single OU
0
 

Author Comment

by:YaYangTeah
ID: 39850202
How about I want to add in other information like contacts number  ?
0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
LVL 7

Expert Comment

by:dsnegi_25dec
ID: 39850233
0
 
LVL 63

Expert Comment

by:Simon Butler (Sembee)
ID: 39851002
Exchange is a poor tool to do this.
If you want to send spam to these people then you need to use a third party service to do it for you. Don't import them in to the GAL, that is will just pollute the GAL with data that most people in the business don't care about.

If you have just culled the information from a directory, then you have probably broken a pile of data protection laws (depending on the location) and broken best practises on sending email, which should be double OPT In.

Simon.
0
 
LVL 5

Accepted Solution

by:
Pankaj_401 earned 500 total points
ID: 39852446
You can get a list of current contacts by running : Get-Contact | Export-Csv c:\temp\contacts.csv

Follow below steps to import contact list in exchange server :
Create a csv file c:\contact.csv
Select file format as :
name,emailaddress,office,department
a,a@a.com,aa,ab

and run this cmdlet :
Import-csv c:\contact.csv | foreach {new-mailcontact -name $_.name -externalemailaddress $_.emailaddress;set-contact -identity $_.name -office $_.office -department $_.department}
OR :
Import-Csv contacts.csv | ForEach { New-MailContact -Name $_.displayName -Firstname $_.FirstName -LastName $_.LastName -ExternalEmailAddress $_.EmailNddress -OrganizationalUnit "YourDomain.Local/Contacts" }
An automated option would also be a good choice in terms of importing contacts without losing any of them.
0

Featured Post

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Exchange Powershell Help 3 32
Exchange Management Shell dysfunctional - 0x8009030e 24 41
Exchange 2007 3 30
Exchange 2007 stray Mailbox 5 19
This article explains in simple steps how to renew expiring Exchange Server Internal Transport Certificate.
This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
In this video we show how to create a mailbox database 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 Servers >> Data…
To show how to create a transport rule 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 >> Rules tab.:  To cr…

786 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