安装SharePoint powershell模块

时间:2017-03-27 11:50:41

标签: powershell

我想将SharePoint powershell模块安装到我的本地PC,并收到错误消息

'Microsoft.SharePoint.PowerShell' is not installed on this computer.

google之后,注意到我的机器上缺少sharepoint dll。我的问题是如何获得sharepoint dll?我是否需要将SharePoint安装到本地计算机上?

2 个答案:

答案 0 :(得分:3)

如果您使用的是SharePoint Online(Office 365),则可以使用Management Shell available

如果您正在使用任何其他版本,则确实需要安装SharePoint Server本身才能在本地计算机上安装PSSnapin,因此SharePoint没有“仅限管理工具”选项(就像Exchange一样)。

您还可以在现有SharePoint Server上运行RDP并运行脚本。

或者使用PSSession通过PowerShell连接到服务器,如下所示:

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

要执行此操作,需要在服务器上启用PSRemoting

答案 1 :(得分:1)

是的,您似乎需要在安装了SharePoint的本地计算机上安装/使用此模块和/或使用PowerShell远程处理。

相关问题