Get-PnPSiteTemplate

Copper Contributor

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

Did that work out for you ?