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 ...
kalpeshvaghela
Jul 29, 2022Steel Contributor
First 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
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
Lee-Martin
Jul 29, 2022Brass Contributor
I now get
"A positional parameter cannot be found that accepts arguement"
"A positional parameter cannot be found that accepts arguement"
- Lee-MartinAug 01, 2022Brass ContributorThanks, I ended up doing the latter.
Thanks everyone for all your help. - Bharath ArjaJul 29, 2022Iron Contributor
Yes, you need to have admin access to SharePoint to be able to use PnP PowerShell.
Alternatively, you can use a migration tool to make a copy of the site. You can start exploring SharePoint migration tool by Microsoft which is free to use. https://docs.microsoft.com/en-us/sharepointmigration/introducing-the-sharepoint-migration-toolEven to use migration tool, you need to have at least site collection admin access for a successful migration.
If you don't want to deal with all of this, you can create your site manually and create individual lists using 'create from existing lists' functionality'. It takes time but you will get there.
- Lee-MartinJul 29, 2022Brass ContributorGlobal Admin rights to SharePoint?
- kalpeshvaghelaJul 29, 2022Steel ContributorYou need to connect with Global Administrator rights
- Lee-MartinJul 29, 2022Brass ContributorI'm now getting a 403 Forbidden error
- kalpeshvaghelaJul 29, 2022Steel ContributorPlease like my answer it it helped you so that it can be helpful to any other person as well
- Lee-MartinJul 29, 2022Brass ContributorMy mistake, typo in that attempt