SOLVED

workaround | copy a layout from an existing sharepoint team site

Copper 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
best response confirmed by VI_Migration (Silver Contributor)
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.

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

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.

1 best response

Accepted Solutions
best response confirmed by VI_Migration (Silver Contributor)
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.

View solution in original post