26.5 C
Dubai
Thursday, April 25, 2024

How to do a manual Gal sync from Exchange 2010 to Exchange 2013

Here is the Scenario –

Exchange 2010 Users/Contacts/Distribution groups  to show up in their Exchange 2013 forest as Mail Contacts.

Lets see how to export from Exchange 2010 forest and Import them In Exchange 2013 forest as Mail Contacts

 

Step 1 –

Taking a Manual Dump of Mailboxes,Mail Contacts,Distribution Groups

Open Exchange Management Shell in Exchange 2010

 

Run

Get-Mailbox -ResultSize Unlimited | Select-Object * | Export-csv C:\Mailboxes.csv
Get-MailContact -ResultSize Unlimited | Select-Object * | Export-Csv C:\MailContacts.csv

 

Get-DistributionGroup -ResultSize Unlimited | Select-Object * | Export-Csv C:\DistributionGroups.csv

image

 

Step 2 –

Move the Mailboxes.csv,MailContacts.csv,DistributionGroups.csv to the Exchange 2013 Server root C Drive.

 

Step 3 –

Start the transcript in Exchange 2013 Shell So that you can save all the happening in this session

Start-Transcript C:\log.txt

image

 

Step 4 –

Create a new Root OU “Contacts” and import them

–Change Appropriate Domain Name in OrganizationalUnit Paramter.

Run

Import-Csv "C:\Mailboxes.csv" | Foreach{new-mailcontact -name $_.displayname -ExternalEmailAddress $_.Primarysmtpaddress -OrganizationalUnit "domain.com/Contacts"}
Import-Csv "C:\Mailcontacts.csv" | Foreach{new-mailcontact -name $_.displayname -ExternalEmailAddress $_.Primarysmtpaddress -OrganizationalUnit "domain.com/Contacts"}
Import-Csv "C:\distributionGroups.csv" | Foreach{new-mailcontact -name $_.displayname -ExternalEmailAddress $_.Primarysmtpaddress -OrganizationalUnit "domain.com/Contacts"}

 

Step 5-

Update your Global Address list and Offline Address book .

Note – GAL takes effect instantly in Outlook Web Access, Address book in Outlook Takes at least 24 hours to update.

Get-GlobalAddressList | Update-GlobalAddressList
Get-OfflineAddressBook | Update-OfflineAddressBook

image

Step 6-

Stop-Transcript

image

Satheshwaran Manoharan
Satheshwaran Manoharanhttps://www.azure365pro.com
Award-winning Technology Leader with a wealth of experience running large teams and diversified industry exposure in cloud computing. From shipping lines to rolling stocks.In-depth expertise in driving cloud adoption strategies and modernizing systems to cloud native. Specialized in Microsoft Cloud, DevOps, and Microsoft 365 Stack and conducted numerous successful projects worldwide. Also, Acting as a Technical Advisor for various start-ups.

Related Articles

7 COMMENTS

  1. Thank you for such an excellent post. Can we import “Office Field” and “Telephone Number” in new mail contact?

    Early response is highly appreciated.

    Warm Regards,

LEAVE A REPLY

Please enter your comment!
Please enter your name here

× How can I help you?