Solved

import contact list to exchange servers

Posted on 2014-02-11
6
4,446 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 11

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
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

Increase your protection from Zero Day threats!

Running two Antivirus' is never a good idea.
Taking advantage of Multiple Security layers on the other hand can often save your hide.
See which top notch security software brands have been proven to happily coexist together.
Reduce your chances of becoming a statistic.

Question has a verified solution.

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

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…
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...
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…
CodeTwo Sync for iCloud (http://www.codetwo.com/sync-for-icloud?sts=6554) automatically synchronizes your Outlook 2016, 2013, 2010 or 2007 folders with iCloud folders available via iCloud Control Panel. This lets you automatically sync them with…

732 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