Skip to content

Provision SharePoint sites from a template, for dummies #314

Answered by erwinvanhunen
Eli-Schei asked this question in Q&A
Discussion options

You must be logged in to vote

Hi!

Yes, Get-PnPProvisioningTemplate has been renamed since 1.0 of the new PnP PowerShell: it's now called Get-PnPSiteTemplate. Same functionality, same parameters.

The flow is relatively simple (but you might have to tweak the resulting templates a bit to your liking)

Connect-PnPOnline -Url [templatesite]
Get-PnPSiteTemplate -Out mytemplate.xml
Connect-PnPOnline -Url [targetsite]
Invoke-PnPSiteTemplate mytemplate.xml

This is over simplified as there might be things you want to include, like branding files which are by default not exported. Specify -PersistBrandingFiles on Get-PnPSiteTemplate for that so the engine will include things like logos, etc.

The branding files will be stored in …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Eli-Schei
Comment options

Answer selected by Eli-Schei
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants