Forum Discussion
Jack_Viljoen
May 16, 2022Copper Contributor
Get-PnPSiteTemplate
Hi, I am trying to get site template. I am using weblogin to connect to the site and then running
Get-PnPSiteTemplate -Out C:\Temp\template.pnp. Then this error occurs...
Get-PnPSiteTemplate : GetAccessTokenAsync() called without an ACS token generator. Specify in AuthenticationManager constructor the authentication parameters
At line:1 char:1
+ Get-PnPSiteTemplate -Out C:\Temp\template.pnp
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (:) [Get-PnPSiteTemplate], ArgumentException
+ FullyQualifiedErrorId : EXCEPTION,PnP.PowerShell.Commands.Provisioning.Site.GetSiteTemplate
I have full admin to the site and ran PowerShell ISE as admin.
Any help is appreciated,
Thanks
2 Replies
Sort By
Did that work out for you ?
- There was another topic about that here, https://techcommunity.microsoft.com/t5/sharepoint-developer/get-pnpsitetemplate-attempted-to-perform-an-unauthorized/m-p/2631095, does that help?