I have successfully saved a Site Template using the following PowerShell command:

Get-PnPProvisioningTemplate -Out $templateFile -PersistBrandingFiles -PersistPublishingFiles;

I'm looking in the directory that contains the Template. There is a subfolder that contains Default.aspx, but nothing else. The PersistBrandingFiles parameter should save off masterpages, sitelogo, alternate CSS and the files that make up the composed look will be saved, yet they are not there.

I find the documentation to be a bit sparse. I've searched extensively, but not many examples. Perhaps I'm completely missing something.

Any suggestions?

  • subweb or root web? Oct 2, 2018 at 15:17
  • HI Derek. My Template originates from a Root Web. Thanks! Oct 2, 2018 at 16:44

1 Answer 1


Please check the detailed explain of PnP Provisioning PowerShell and example here:

Getting started with the PnP Provisioning Engine and PnP PowerShell

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.