我在PnP-PowerShell github上发布了这个,但是我很快解决这个问题,所以我也在这里发布。Connect-PnPOnline:找不到方法
报告问题或丢失的功能
使用使用Connect-PnPOnline -Url $url -Credentials $cred -ErrorAction Stop
连接到一个HTTP SP2013像往常一样一个剧本,但它突然失败。这与另一个案例https://github.com/SharePoint/PnP-PowerShell/issues/926非常接近,但即使我做了他所做的,问题仍未解决。该脚本不需要失败,仅使用该cmdlet本身也会失败。
预期的行为
连接到SharePoint网站
实际行为
脚本失败,并给出了这个错误:
"Connect-PnPOnline : Méthode introuvable: 'Void Microsoft.SharePoint.Client.ClientContextExtensions.ExecuteQueryRetry(Microsoft.SharePoint.Client.ClientRuntimeContext, Int32, Int32)'.
Au caractère C:\Program Files (x86)\Provi-SP\get-template.ps1:11 : 1
Connect-PnPOnline -Url $text -Credentials $cred -ErrorAction Stop
+ CategoryInfo : NotSpecified: (:) [Connect-PnPOnline], MissingMethodException
+ FullyQualifiedErrorId : System.MissingMethodException,SharePointPnP.PowerShell.Commands.Base.ConnectOnline
的PNP管的版本PowerShell Cmdlet S:
即插即用的PowerShell的SharePoint 2013
版本该cmdlet模块:
2.16.1706.1
为即插即用,PowerShell命令安装方法:
安装通过带有Install-Module的PowerShell Gallery。
使用[此RELEASE](HTTPS:/ /github.com/SharePoint/PnP-PowerShell/releases) –
我已经在最新发布:2.16.1706.1,甚至在尝试通过这种方法重新安装后,它仍然失败 – raiskader
是的,但我仍然希望你下载并使用它。我用这个和它的工作正常。试试 –