2016-11-30 57 views
0

添加PowerShell的snapins當我有需要在PowerShell的5.0版錯誤的Microsoft SharePoint

我試圖執行Add-PSSnapin "Microsoft.SharePoint.PowerShell"本地運行的SharePoint PowerShell腳本,但它拋出錯誤:

The Windows PowerShell snap-in 'Microsoft.SharePoint.PowerShell' is not installed on this computer.

如何下載這些DLL並安裝管理單元?

+1

您需要提供更多關於此的信息。您是否嘗試過下載或安裝PowerShell SnapIns?如果是這樣,會發生什麼?您使用的是哪個版本的SharePoint? –

+0

我沒有找到確切的文件來下載並安裝管理單元「microsoft.sharepoint.powershell」。 我正在使用SharePoint Server 2013企業版。 –

回答

0

你必須要麼RDP到SharePoint服務器本身,或者使用的PSSession通過PowerShell來連接到服務器是這樣的:

New-PSSession -ComputerName SP2013Server 
Add-PSSnapin Microsoft.SharePoint.Powershell 

要做到這一點PSRemoting需要在服務器上啓用

+0

謝謝:)我現在可以獲取所有sharepoint-powershell cmdlet。 –