pnp / pnpframework

PnP Framework is a .NET library targeting Microsoft 365 containing the PnP Provisioning engine and a ton of other useful extensions
https://pnp.github.io/pnpframework/
MIT License
200 stars 140 forks source link

InvalidOperation,PnP.PowerShell.Commands.Provisioning.Site.InvokeSiteTemplate #851

Open Aguacatito3312 opened 1 year ago

Aguacatito3312 commented 1 year ago

I´m trying to Copying a Modern SharePoint site 'like for like' using PowerShell |and getting this error:

Invoke-PnPSiteTemplate : Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) At C:\Code Site\Test Site Script.ps1:5 char:1

K33san commented 8 months ago

Have you found a solution to your problem yet? I am having the exact same issue.