PowerShell to import external contacts into Exchange Online

With all contacts formatted in an CSV file (Name,External) connect to Exchange Online using PowerShell and use the following.

import-csv contact.csv | %{new-mailcontact -Name $_.Name -DisplayName $_.Name -External $_.External}

https://support.office.com/en-gb/article/Bulk-import-external-contacts-to-Exchange-Online-bed936bc-0969-4a6d-a7a5-66305c14e958

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s