如何在不安装sharepoint的情况下使用Sharepoint cmdlet?

Sam*_*abu 4 powershell sharepoint powershell-2.0 sharepoint-2010 sharepointadmin

我必须使用powershell将csv文件字段上传到Sharepoint 2010列表中.我在Windows XP机器上工作.

当我想添加-pssnapin时

Add-PSSnapin Microsoft.SharePoint.Powershell
Run Code Online (Sandbox Code Playgroud)

它抛出异常为

"此计算机上未安装Windows PowerShell管理单元'Microsoft.SharePoint.Powershell'."

是否可以通过安装Pssnapin或将必要的dll放在某个位置并加载它来使用Sharepoint Powershell cmdlet?

CB.*_*CB. 6

我认为唯一的方法是Enable-PSRemoting在Sharepoint服务器上,然后从XP电脑:

Enter-PSSession -ComputerName sharepointservername
Add-PSSnapin Microsoft.SharePoint.PowerShell
Run Code Online (Sandbox Code Playgroud)

通过这种方式,您可以远程管理您的sharepoint服务器

编辑:

Sharepoint Remoting一步一步