我正在学习 SharePoint,更具体地说是使用 PowerShell 进行配置。我不能使用 cmdlet 作为 Get-PnPProvisioningTemplate 或 Apply-PnPProvisioningTemplate,当执行它们时 PS 返回不是 cmdlet。我不知道我是否需要安装一些东西。
答案 0 :(得分:1)
您需要遵循 PnP.Powershell 文档 (https://github.com/pnp/powershell),其中链接到安装指南 (https://pnp.github.io/powershell/articles/installation.html)
基本上你需要从 powershell 控制台运行 Install-Module -Name "PnP.PowerShell"
答案 1 :(得分:1)
@费利佩,
这些 cmdlet 存在于旧版 PnP 中,但被当前 PnP 中的新 cmdlet 替换。
而新的对应 cmdlet 是:
更多参考:
BR