Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.1k views
in Technique[技术] by (71.8m points)

powershell - How to work with Sharepoint cmdlet without installing sharepoint?

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

When i am trying to add-pssnapin

Add-PSSnapin Microsoft.SharePoint.Powershell

It throws exception as

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

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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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

In this way you can manage remotely your sharepoint server

Edit:

Sharepoint Remoting step by step


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...