Creating 365 Security Groups via Powershell

Quite simply

 

$ObjectsToCreate=import-csv groups.csv

foreach ($Object in $ObjectsToCreate)

{

    new-msolgroup -description $Object.description -Displayname $Object.name -managedby "anonit@anonit.net" -tenantid 36e0e315-9f63-497e-aca1-58b47254c2aa

}


Also…. lets not forget that the powershell command new-guid exists!

Leave a Reply

Your email address will not be published. Required fields are marked *