Forum Discussion
Get-PnPSiteTemplate' is not recognized as the name of a cmdlet
Hi,
I m trying to save a Communication site as a template ( XML) and then trying to resue it to apply to another site as described in the following.
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/introducing-the-pnp-provisioning-engine
But I m getting the following message when I run Get-PnPSiteTemplate -Out "C:\test\PnP-Provisioning-FilePGS1.xml"
Get-PnPSiteTemplate : The term 'Get-PnPSiteTemplate' is not recognized as the name of a cmdlet, function, script file,
or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
FYI - I can connect to SharePoint site using PnP, but when I try to run Get-PnPSiteTemplate I m getting the error.
Can someone please help me fix this issue.
I have attached the modules available FYI.
Thanks.
1 Reply
nipW I will suggest you to uninstall all previously installed versions on PnP PowerShell and install the latest version of PnP PowerShell (v2.3.0) again.
Follow: Installing PnP PowerShell
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.