Home

How to Create O365Groups Sharepoint Site via PowerShell

%3CLINGO-SUB%20id%3D%22lingo-sub-89773%22%20slang%3D%22en-US%22%3EHow%20to%20Create%20O365Groups%20Sharepoint%20Site%20via%20PowerShell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-89773%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20there%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20are%20rolling%20out%20O365%20Groups%20to%20our%20200%2B%20stores%2C%20one%20for%20each%20store%20for%20local%20team%20collaboration.%20Part%20of%20this%20is%20the%20creation%20of%20a%20standard%20set%20of%20Folders%20within%20the%20O365%20Groups%20'Files'%20area.%3C%2FP%3E%3CP%3EWhilst%20we%20are%20able%20to%20create%20the%20O365%20Group%20via%20Powershell%2C%20we%20can't%20seem%20to%20find%20an%20easy%20way%20to%20create%20the%20SharePoint%20Site%20for%20the%20groups%20and%20then%20add%20the%20folders.%3C%2FP%3E%3CP%3ELooking%20for%20something%20similar%20to%20the%20OneDrive%20Cmdlet%20%22Request-SPOPersonalSite%22%20used%20to%20create%20personal%20OneDrive%20Sites.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20ideas%3F%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3CP%3ELance%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-89773%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdmin%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EGroups%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%20Groups%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EStorage%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-89817%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20Create%20O365Groups%20Sharepoint%20Site%20via%20PowerShell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-89817%22%20slang%3D%22en-US%22%3E%3CP%3ELike%20Juan%20Carlos%20says%2C%20my%20advice%20too%2C%20is%20to%20use%20PnP%20PowerShell%20for%20this.%20Fairly%20easy%20to%20install.%20The%20instructions%20and%20the%20entire%20repository%20can%20be%20found%20here%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FSharePoint%2FPnP-PowerShell%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2FSharePoint%2FPnP-PowerShell%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20can%20then%20use%20these%20CMDlets%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENew%E2%80%91PnPUnifiedGroup%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FSharePoint%2FPnP-PowerShell%2Fblob%2Fmaster%2FDocumentation%2FNewPnPUnifiedGroup.md%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2FSharePoint%2FPnP-PowerShell%2Fblob%2Fmaster%2FDocumentation%2FNewPnPUnifiedGroup.md%3C%2FA%3E%3C%2FP%3E%3CP%3EAdd-PnPFolder%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FSharePoint%2FPnP-PowerShell%2Fblob%2Fmaster%2FDocumentation%2FAddPnPFolder.md%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2FSharePoint%2FPnP-PowerShell%2Fblob%2Fmaster%2FDocumentation%2FAddPnPFolder.md%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-89805%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20Create%20O365Groups%20Sharepoint%20Site%20via%20PowerShell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-89805%22%20slang%3D%22en-US%22%3EHave%20you%20taken%20a%20look%20at%20PnP%3F%20They%20have%20already%20in%20place%20specific%20cmdlets%20to%20work%20with%20Groups%20and%20they%20also%20have%20all%20the%20provisioning%20staff%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

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

2 Replies
Highlighted
Have you taken a look at PnP? They have already in place specific cmdlets to work with Groups and they also have all the provisioning staff
Highlighted

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