我想安装SharePoint PowerShell的模块到本地PC,并收到错误消息安装SharePoint的PowerShell模块
'Microsoft.SharePoint.PowerShell' is not installed on this computer.
谷歌后,发现的SharePoint DLL文件丢失我的机器上。我的问题是如何获得SharePoint的DLL?我是否需要将SharePoint安装到本地计算机上?
我想安装SharePoint PowerShell的模块到本地PC,并收到错误消息安装SharePoint的PowerShell模块
'Microsoft.SharePoint.PowerShell' is not installed on this computer.
谷歌后,发现的SharePoint DLL文件丢失我的机器上。我的问题是如何获得SharePoint的DLL?我是否需要将SharePoint安装到本地计算机上?
是的,您似乎需要在安装SharePoint的本地计算机上安装/使用此模块和/或使用PowerShell远程处理。
如果您使用的SharePoint Online(Office 365中)有一个Management Shell available
如果您使用任何其他版本,你确实需要安装SharePoint Server本身让你的本地计算机上的PSSnapin,有没有' (仅适用于Exchange的管理工具)选项。
您也可以RDP到现有SharePoint服务器上并运行脚本。
或者使用的PSSession通过PowerShell来连接到服务器是这样的:
New-PSSession -ComputerName SharePointServer01
Add-PSSnapin Microsoft.SharePoint.Powershell
要做到这一点PSRemoting需要在服务器上启用