如何在不安装 sharepoint 的情况下使用 Sharepoint cmdlet? [英] How to work with Sharepoint cmdlet without installing sharepoint?

查看:49
本文介绍了如何在不安装 sharepoint 的情况下使用 Sharepoint cmdlet?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I have to upload csv file fields into Sharepoint 2010 list using powershell. I am working in windows XP machine.

当我尝试添加 pssnapin

When i am trying to add-pssnapin

Add-PSSnapin Microsoft.SharePoint.Powershell

它抛出异常

Windows PowerShell 管理单元‘Microsoft.SharePoint.Powershell’是没有安装在这台机器上."

"The Windows PowerShell snap-in 'Microsoft.SharePoint.Powershell' is not installed on this machine."

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

Is it possible to work with Sharepoint Powershell cmdlet just by installing Pssnapin or by placing the necessary dlls in some location and load it?

推荐答案

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

I think the only way is to Enable-PSRemoting on Sharepoint server, then from XP computer:

Enter-PSSession -ComputerName sharepointservername
Add-PSSnapin Microsoft.SharePoint.PowerShell

这样你就可以远程管理你的sharepoint服务器

In this way you can manage remotely your sharepoint server

Sharepoint Remoting 一步一步

这篇关于如何在不安装 sharepoint 的情况下使用 Sharepoint cmdlet?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆