Posts Tagged ‘computer’

Recently I had a word with Ryan Yates on our yammer group and found a interesting Powershell script. Ryan created a powershell script named “Client-side SharePoint PowerShell”is avaiable on Codeplex https://sharepointpowershell.codeplex.com. We can use this script to connect to on-premises SharePoint site using Powershell and execute queries on same. I found it pretty intreseting so I tried same. Below are couple of requirement to use this powershell script.

Windows powershell 3.0

Copy 15 folder from any sharepoint server(path C:\Program Files\Common Files\microsoft shared\Web Server Extensions) to local client machine at same location.

Client user have atleast read permission on target URL.

Client system should be part of same domain.

If above requirement are met, lets get connect to remote SharePoint server. We need to download “Client-side SharePoint PowerShell” from codeplex site and extract it to a folder(e.g. c:\inder). Then Open Windows Powershell(Run as Admin) and browse(cd C:\Inder\sharepointpowershell-42493) to Powershell folder as shown below:

Now we We need to load “Client-side SharePoint PowerShell” module using “Import-Module .\spps.psm1” command
Note: You might have to select “R” multiple times to load all the scripts

Finally we need to connect to SharePoint site using command “Initialize-SPPS -siteURL http://siteurl”

If we dont see any error message, it means our SharePoint is now conenct and ready to use.
Below are arguments you can use in this powershell