Forum Discussion
Exporting site from SharePoint Online
You can do half of this using Get-PnPProvisioningTemplate - have a look here at how to include data in this export - https://medium.com/swlh/sharepoint-pnp-provisioning-with-data-move-your-contents-from-one-site-to-another-in-sharepoint-ed009f4a9e58
Why do you need to copy it to your local machine?
Andrew Hodges, Thanks for your tip. I tried the steps on the link. When I typed in the command "Connect-PnPOnline https://(domain)/sites/(mysite)/",
in PowerShell, I get the error "Connect-PnPOnline: the term 'Connect-PnPOnline' is not recognized as the name of a cmdlet, function, script file, or operable program."
Regarding downloading to my local machine, I thought I could download the content from the site, create a new site and then upload the content to the new site.
Sincerely,
Jason
- MircoOct 20, 2022MCTHey there!
I stumbled over this thread so I think others may also do ;-).
It looks like you're missing the PnP Powershell module on your machine.
You can find a brief overview about it here: https://www.enito.ch/install-pnp-powershell-module-for-sharepoint-online- SigmaDX_JHOct 31, 2024Copper ContributorI just wanted to add that although "Microsoft Recommends using the PnP Provisioning Engine" - The documentation also states:
"The PnP Provisioning Framework & PnP Provisioning Engine are open-source solutions with active community providing support for it. There is no SLA for the open-source tool support from Microsoft."
So - The Method Recommended By Microsoft is NOT Supported By Microsoft.
I have found several bugs and mis-labeled functions in the PnP Provisioning Suite - it does NOT necessarily work as the documentation states, and there is NO official support.
This item alone caused us to fail our ISO27001 audit.
Microsoft need to provide a method of exporting/importing site templates that they DO support.