Hi @sns ,
I can also reproduce this on my end. When applying the site template to a site collection using Invoke-PnPSiteTemplate, the navigation links in source site will be added to the head while the links in the destination site will remain. As per my research, I'm afraid it is a default situation and you need to manage the navigation links manually after invoking the site template.
- What do you want to achieve for content type/app/list with PnP PowerShell? You can search in this PnP.PowerShell directory to get the PnP commands you need.
- The .xml file is stored in the location where you run the PnP command. For example, I ran the command under C:\WINDOWS\system32 so that the filename.xml was stored in C:\WINDOWS\system32. When I run the command like
Invoke-PnPSiteTemplate -Path filename.xml
, it will get the filename.xml from C:\WINDOWS\system32\filename.xml by default.
- As per my test, it is not supported to invoke site template accross tenants. I got below error when running the PnP commands and I found some account infomation was stored in the .xml file.
- When using Connect-PnPOnline to connect to a SharePoint Online site collection, we are connecting to only one site collection. I am a bit confused about this question you asked, could you please tell me more on this question?
- SharePoint now offers several site templates that contain pre-populated pages, page templates, news post templates, and web parts that can be customized to fit the needs of your organization. Reference: Apply and customize SharePoint site templates. Also, you can create site templates to provide reusable lists, themes, layouts, pages, or custom actions so that your users can quickly build new SharePoint sites with the features they need. Learn more about how to create custom site templates for your organization.
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.