Mass import Distribution List CSV into Office 365 via Powershell

Hello!

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 $_.name -Type $_.Type}

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

Thanks!

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

Leave a Reply