Forum Discussion
Create Groups with PowerShell
We have a PowerShell that create Microsoft Groups based on a CSV file. After creating a group, we would like to set a lot of settings - doclibrary versionhistory, language, local time...
The provision process for a sitecollection takes so long after creating a groups.
Our steps:
- Create Microsoft Groups (check) (we use: $session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $userCredentials -Authentication Basic -AllowRedirection)
- The SiteCollection will create, after click "go to teamsite" in the welcome message (not check, but in work - actual it's a manual job)
....the provision process takes over 2 hour... :(
- only after fnishing the provision process, we can set the settings
Has anybody a tipp or a solution, that performs the provisioning process in a shorter time and create Microsoft Groups faster over PowerShell?
Thanks a lot,
Dave
5 Replies
Well, we have discussed this on different forums...the problem you are having (even I'm seeing improvements) is well known...I think you might consider to create the Groups using the Graph TonyRedmond cfiessinger VesaJuvonen
- David MehrBrass Contributor
jcgonzalezmartin thanks for your feedback. We have tested this with Graph, but same issues...and with graph we can't set specific settings...
- David MehrBrass Contributor
jcgonzalezmartin The provisioning over the api takes so long, more hours (2-4h). When i manually create a groups, it's so fast - i wish this with PowerShell also.
After the provisioning, a group is created and also a sharepoint, but appears the following error:
********************************Sorry, something went wrongCan't load the application on this page. Use the browser Back button to retry. If the problem persists, contact the administrator of the site and give them the information in Technical Details.https://diemacher.sharepoint.com/sites/TestDave19GroupID/_layouts/15/error.aspx?ErrorCorrelationId=03b9f49d-a00b-3000-df65-ac0a1b609025&ErrorText=Can%27t%20load%20the%20application%20on%20this%20page.%20Use%20the%20browser%20Back%20button%20to%20retry.%20If%20the%20problem%20persists%2C%20contact%20the%20administrator%20of%20the%20site%20and%20give%20them%20the%20information%20in%20Technical%20Details.&ErrorDetails=Error%3A%20***The%20value%20for%20%22description%22%20must%20not%20be%20null&ErrorCategory=spfx#Error details: Error: ***The value for "description" must not be null
Correlation ID: 03b9f49d-a00b-3000-df65-ac0a1b609025
Date and Time: 24.05.2017 00:37:13
********************************
We can open the sharepoint site, all site content, lists and librarys. The error appears when i access to the "mts" Site Page Home...
Have anybody more infos or tips for automatically create groups with powershell?