Solved

import contact list to exchange servers

Posted on 2014-02-11
6
4,584 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 12

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 19

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
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 
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

Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

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

After hours on line I found a solution which pointed to the inherited Active Directory permissions . You have to give/allow permissions to the "Exchange trusted subsystem" for the user in the Active Directory...
This article will help to fix the below errors for MS Exchange Server 2013 I. Certificate error "name on the security certificate is invalid or does not match the name of the site" II. Out of Office not working III. Make Internal URLs and Externa…
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…
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

728 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