Forum Discussion

Vincent ORTOLLAND's avatar
Vincent ORTOLLAND
Copper Contributor
Oct 26, 2018
Solved

How to create O365 Groups in Powershell from a csv file

Hello,   First I want to say that it's my irst post here, so I didn't know if I should post here or in the Powershell conversations.   I'm struggling at the moment because I'm trying to massively...
  • VasilMichev's avatar
    Oct 29, 2018

    The reason for the failure is PowerShell treating the value in that column as string, and not a list. You should be able to do it like this:

     

    Add-UnifiedGroupLinks groupname -LinkType Member -Links $_.Members.Split(",")

     

    You can adapt the example for the New-UnifiedGroup cmdlets as well, it's simply easier to test with the Add-UnifiedGroupLinks one.

Resources