Mass import Distribution List CSV into Office 365 via Powershell


I’m currently trying to get a script working to import a CSV of Distribution Lists into Office 365
(the script in question:)

Import-CSV “C:BlankThisIstheLIST.csv” | foreach {New-DistributionGroup -Name $ -Type $_.Type}

Could someone help me with the correct format for the CSV/Make sure my script is correct?


submitted by /u/ChungoBungus
[link] [comments]

Leave a Reply