Hi everyone,
I’m trying to use commands to copy and apply a template from sharepoint site to another but the problem is that it asks me to overwrite the file every time I execute the commands. How do I automatically say Yes to that question ?
Heres the commands :
Connect-PnPOnline -Url https://XXX.sharepoint.com/sites/test1
Get-PnPSiteTemplate -out template.pnp -Handlers PageContents -IncludeAllClientSidePages -PersistBrandingFiles # asks to overwite
Connect-PnPOnline -Url https://XXX.sharepoint.com/sites/test10
Invoke-PnPSiteTemplate .\template.pnp # asks to overwite
Thanks !