Jul 24 2017 06:00 PM
Hi there,
We are rolling out O365 Groups to our 200+ stores, one for each store for local team collaboration. Part of this is the creation of a standard set of Folders within the O365 Groups 'Files' area.
Whilst we are able to create the O365 Group via Powershell, we can't seem to find an easy way to create the SharePoint Site for the groups and then add the folders.
Looking for something similar to the OneDrive Cmdlet "Request-SPOPersonalSite" used to create personal OneDrive Sites.
Any ideas?
Thanks
Lance
Jul 24 2017 10:49 PM
Jul 25 2017 12:06 AM
Like Juan Carlos says, my advice too, is to use PnP PowerShell for this. Fairly easy to install. The instructions and the entire repository can be found here: https://github.com/SharePoint/PnP-PowerShell
You can then use these CMDlets:
New‑PnPUnifiedGroup: https://github.com/SharePoint/PnP-PowerShell/blob/master/Documentation/NewPnPUnifiedGroup.md
Add-PnPFolder: https://github.com/SharePoint/PnP-PowerShell/blob/master/Documentation/AddPnPFolder.md