Get-PnPProvisioningTemplate不能被识别为cmdlet的名称



我正在学习SharePoint,更具体地说是配置PowerShell。我不能使用cmdlet作为Get-PnPProvisioningTemplate或Apply-PnPProvisioningTemplate,当执行它们时,PS返回不是cmdlet。我不知道我是否需要安装什么

@Felipe,

这些cmdlet存在于旧的PnP中,但在当前的PnP中被新的cmdlet取代。

  • 从PnP PowerShell的旧版本升级| PnP PowerShell
  • PnP PowerShell | PnP PowerShell

新的对应的cmdlet为:

  • Invoke-PnPSiteTemplate

更多参考:

  • https://github.com/pnp/powershell/issues/285
p>

div class="one_answers">您需要遵循PnP。Powershell文档(https://github.com/pnp/powershell)链接到安装指南(https://pnp.github.io/powershell/articles/installation.html)

基本上你需要从powershell控制台运行Install-Module -Name "PnP.PowerShell"

最新更新