Forum Discussion
johnjohn-Peter
Dec 21, 2024Iron Contributor
Get-PnPSiteTemplate: The remote server returned an error: (403) Forbidden
I want to copy one site collection from one tenant to another, so on the source tenant, I created this App Registering and I grant it full control on SharePoint:- And I define to use secret f...
1stFox
Jul 15, 2025Copper Contributor
Just had the same issue, had to adjust the -Out to something like C:/Temp/TestTemplate.xml (or .Json) rather than just "TestTemplate.xml" (and make sure the location exists). After that it worked.
Not sure if you still have the issue, but you could try that.