Get-PnPProvisioningTemplate 未被识别为 cmdlet 的名称

Get-PnPProvisioningTemplate is not recognized as the name of a cmdlet

我正在学习 SharePoint,更具体地说是使用 PowerShell 进行配置。当执行不是 cmdlet 的 PS return 时,我不能将 cmdlet 用作 Get-PnPProvisioningTemplate 或 Apply-PnPProvisioningTemplate。不知道要不要安装什么

您需要遵循 PnP.Powershell 文档 (https://github.com/pnp/powershell) that links you to the installation guide (https://pnp.github.io/powershell/articles/installation.html)

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

@Felipe,

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

而新对应的 cmdlet 是:

更多参考:

BR