[英]Error when adding powerShell snapins for Microsoft SharePoint
我擁有在PowerShell v5.0上本地運行的SharePoint PowerShell腳本
我試圖執行Add-PSSnapin "Microsoft.SharePoint.PowerShell"
但會引發錯誤:
Windows PowerShell管理單元“ Microsoft.SharePoint.PowerShell”未安裝在此計算機上。
如何下載這些dll並安裝管理單元?
您必須要么RDP到SharePoint Server本身,要么使用PSSession通過PowerShell通過以下方式連接到Server:
New-PSSession -ComputerName SP2013Server
Add-PSSnapin Microsoft.SharePoint.Powershell
為此,需要在服務器上啟用PSRemoting
我不知道是不是這種情況,但是當我錯誤地在Powershell ISE(x86)而不是64位版本上運行腳本時,卻收到了此錯誤消息。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.