Path options for reading and writing PnPSite Templates #1001
Replies: 2 comments 2 replies
-
Hi. You can invoke SiteTemplates directly from a URL. i.e. store the .XML or .PNP file in a document library, and invoke from there to your current context. You cannot do the same for TenantTemplates however. They have to be enacted from Windows :( |
Beta Was this translation helpful? Give feedback.
-
Hi. I was referring to the second part of your question :) You can store SiteTemplates in a document library and "Invoke-PnPSiteTemplate" directly from that library. |
Beta Was this translation helpful? Give feedback.
-
I have a question about the usage of the PnP commands and the path of the template. The following command works to create a template of the site I'm connected to:
Get-PnPSiteTemplate -out “C:\temp\TestTemplate.xml”
Then I can apply the template by connecting to a new site and running this:
Invoke-PnPSiteTemplate -Path “C:\temp\TestTemplate.xml”
But can I specify a template that is saved into OneDrive or into a document library in a Sharepoint site? Or can I only write/read the template file to a mapped drive (such as the c: drive)? I'm trying to figure out where to store templates so that I and others can apply the same template to standardize after creating a Sharepoint site.
Beta Was this translation helpful? Give feedback.
All reactions