SOLVED
Home

workaround | copy a layout from an existing sharepoint team site

%3CLINGO-SUB%20id%3D%22lingo-sub-326507%22%20slang%3D%22en-US%22%3Eworkaround%20%7C%20copy%20a%20layout%20from%20an%20existing%20sharepoint%20team%20site%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-326507%22%20slang%3D%22en-US%22%3E%3CP%3Ewe%20need%20to%20create%20hundreds%20of%20SharePoint%20team%20site%20(powershell)%20and%20the%20layout%20must%20be%20identical%2C%20can%20be%20possible%20create%20a%20new%20team%20site%20using%20an%20existing%20one%20as%20a%20template%20or%20exporting%20and%20importing%20Layout%20or%20change%20the%20default%20team%20site%3F%3C%2FP%3E%3CP%3Ethank%20you%20in%20advance%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-326507%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EPowerShell%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ETemplate%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-338364%22%20slang%3D%22en-US%22%3ERe%3A%20workaround%20%7C%20copy%20a%20layout%20from%20an%20existing%20sharepoint%20team%20site%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-338364%22%20slang%3D%22en-US%22%3E%3CP%3EI've%20found%20this%20useful%20link%20with%20a%20complete%20guide%3A%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Flaurakokkarinen.com%2Fthe-ultimate-guide-to-sharepoint-site-designs-and-site-scripts%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Flaurakokkarinen.com%2Fthe-ultimate-guide-to-sharepoint-site-designs-and-site-scripts%2F%3C%2FA%3E%3C%2FP%3E%3CP%3EThanks%20to%20all%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-334123%22%20slang%3D%22en-US%22%3ERe%3A%20workaround%20%7C%20copy%20a%20layout%20from%20an%20existing%20sharepoint%20team%20site%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-334123%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F162106%22%20target%3D%22_blank%22%3E%40Renato%20Rossetti%3C%2FA%3E%26nbsp%3Bnever%20apologise%20for%20not%20knowing%20something%2C%20because%20unless%20you%20ask%20the%20question%20you'll%20never%20know%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBasically%2C%20build%20the%20site%20in%20the%20browser%20as%20you%20normally%20would%2C%20so%20create%20your%20content%20types%2C%20lists%2C%20libraries%2C%20pages%20etc.%20You%20can%20then%20export%20that%20site%20as%20a%20template%20and%20redeploy%20it%20on%20another.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-332937%22%20slang%3D%22en-US%22%3ERe%3A%20workaround%20%7C%20copy%20a%20layout%20from%20an%20existing%20sharepoint%20team%20site%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-332937%22%20slang%3D%22en-US%22%3E%3CP%3Eexcuse%20J.C.G.M.%20my%20incompetence%20on%20SharePoint%20but%20what%20exactly%20do%20you%20mean%20by%20create%20your%20template%20with%20the%20graphical%20interface%20of%20SharePoint%3F%20thanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-326527%22%20slang%3D%22en-US%22%3ERe%3A%20workaround%20%7C%20copy%20a%20layout%20from%20an%20existing%20sharepoint%20team%20site%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-326527%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F162106%22%20target%3D%22_blank%22%3E%40Renato%20Rossetti%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20could%20use%20PnP%20Provisioning%20Templates%20which%20should%20do%20the%20job%20quite%20nicely%20for%20you.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EEnsure%20you%20have%20the%20pre-reqs%20installed%20(%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fsharepoint%2Fsharepoint-pnp%2Fsharepoint-pnp-cmdlets%3Fview%3Dsharepoint-ps%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EPnP%20PowerShell%3C%2FA%3E%20installed)%20and%20then%20follow%20the%20high%20level%20description%20below%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3COL%3E%3CLI%3ECreate%20your%20template%20using%20the%20SharePoint%20UI%3C%2FLI%3E%3CLI%3EExport%20the%20template%20using%20the%26nbsp%3B%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fsharepoint-pnp%2Fget-pnpprovisioningtemplate%3Fview%3Dsharepoint-ps%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EGet-PnPProvisioningTemplate%3C%2FA%3E%20cmdlet%3C%2FSPAN%3E%3C%2FLI%3E%3CLI%3E%3CSPAN%3ECreate%20your%20new%20site%20collection%3C%2FSPAN%3E%3C%2FLI%3E%3CLI%3E%3CSPAN%3EApply%20the%20template%20using%20the%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fsharepoint-pnp%2Fapply-pnpprovisioningtemplate%3Fview%3Dsharepoint-ps%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EApply-PnPProvisioningTemplate%3C%2FA%3E%20cmdlet%3C%2FSPAN%3E%3C%2FLI%3E%3C%2FOL%3E%3CP%3E%3CSPAN%3EBuild%20steps%203%20and%204%20into%20a%20loop%20so%20that%20it%20will%20repeat%20as%20you%20need%20it%20to.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20used%20this%20same%20approach%20a%20number%20of%20times%2C%20so%20happy%20to%20help%20if%20you%20get%20stuck.%20Just%20worth%20while%20thinking%20about%20any%20complexities%20that%20might%20be%20on%20the%20site%20in%20terms%20of%20syndicated%20content%20types%2C%20customisations%20and%20workflows%20as%20that%20may%20need%20a%20little%20bit%20of%20additional%20work.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Renato Rossetti
Occasional Contributor

we need to create hundreds of SharePoint team site (powershell) and the layout must be identical, can be possible create a new team site using an existing one as a template or exporting and importing Layout or change the default team site?

thank you in advance

4 Replies
Highlighted
Solution

Hi @Renato Rossetti 

 

You could use PnP Provisioning Templates which should do the job quite nicely for you.

 

Ensure you have the pre-reqs installed (PnP PowerShell installed) and then follow the high level description below:

 

  1. Create your template using the SharePoint UI
  2. Export the template using the Get-PnPProvisioningTemplate cmdlet
  3. Create your new site collection
  4. Apply the template using the Apply-PnPProvisioningTemplate cmdlet

Build steps 3 and 4 into a loop so that it will repeat as you need it to.

 

I've used this same approach a number of times, so happy to help if you get stuck. Just worth while thinking about any complexities that might be on the site in terms of syndicated content types, customisations and workflows as that may need a little bit of additional work.

Highlighted

excuse J.C.G.M. my incompetence on SharePoint but what exactly do you mean by create your template with the graphical interface of SharePoint? thanks

Highlighted

Hi @Renato Rossetti never apologise for not knowing something, because unless you ask the question you'll never know :)

 

Basically, build the site in the browser as you normally would, so create your content types, lists, libraries, pages etc. You can then export that site as a template and redeploy it on another.

Highlighted