我在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
是的,但我仍然希望你下載並使用它。我用這個和它的工作正常。試試 –