Forum Discussion
CptNemo
May 23, 2020Copper Contributor
Bulk import (csv) external contacts to a specific distribution list (365)
Hi there, I would like to bulk import external contacts/recepients (e.g. gmails etc) using a csv file to a specific distribution list named colleagues that I have already created. I found thi...
VasilMichev
May 23, 2020MVP
Run the steps in the article to provision the contacts objects in your directory. Once that's done, you can add them all to a DG. Something like this should do:
Import-CSV blabla.csv | % { Add-DistributionGroupMember DG -Member $_.Emailaddress }
where the csv file is named blabla.csv and it contains a column "emailaddress" to designate the external contact.
Bruno1400
Oct 14, 2021Copper Contributor
It worked for me, thanks !