I was following this to restore a site template on a different site collection. But it keeps on throwing an exception "File not found".

Please suggest what I am missing


1 Answer 1


I had exactly the same issue using Joao's code. What fixed it for me was applying a different Template type. Change



-Template "STS#3"

$web = New-PnpWeb -Title "$siteTitle" -Url "$siteUrl" -Description "$siteDescription" -Locale 1033 -Template "STS#3"
  • I already have a site, what I need just deploy the template(template path shown in the screenshot). May 8, 2019 at 6:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.