Forum Discussion
Lee-Martin
Jul 28, 2022Brass Contributor
Site Template from a Teams Site
Hi I've got a Site which I need to duplicate, after a bit of research it looks like a Teams Site (based off office groups). Is there any way I can get a site template from this? Thanks ...
Lee-Martin
Jul 28, 2022Brass Contributor
Thanks, I'll give that a try
Lee-Martin
Jul 29, 2022Brass Contributor
@kalpeshavaghela
I'm getting an error
"The Current connection holds no SharePoint context. Please use ne of the Connect -PnPOnline commands which uses the -url argument to connect"
Have you seen this before?
I'm getting an error
"The Current connection holds no SharePoint context. Please use ne of the Connect -PnPOnline commands which uses the -url argument to connect"
Have you seen this before?
- kalpeshvaghelaJul 29, 2022Iron ContributorCould you please share all the list of command which you are trying
- Lee-MartinJul 29, 2022Brass ContributorGet-PnPTenantTemplate - Out tenanttemplate.xml -SiteUrl https://ourspserver.sharepoint.com/sites/sitename
- kalpeshvaghelaJul 29, 2022Iron ContributorFirst You need to run
Connect-PnPOnline command to create connection then only you can run Get-PnPTenantTemplate command
Connect-PnPOnline -Url https://[TenantName]-admin.sharepoint.com -Interactive
https://pnp.github.io/powershell/cmdlets/Connect-PnPOnline.html