If you like writing PowerShell script and you wanted to do certain updates or do some kind of reporting out of your SharePoint Site Collection or particular site, I would recommend, using Client Side SharePoint PowerShell. For this, you don't have to run any scripts on SharePoint Server. You can do it on remote basis, as long as you have all the pre-requisites installed on your local machine. The Client Side SharePoint PowerShell from CodePlex provides you basic PowerShell modules and also make sure that you have all the pre-requisites installed on your machine. Once you have this, you are ready to write your own Client Side PowerShell script.

Client Side SharePoint PowerShell basically uses SharePoint Client Object Model, using local libraries installed on your machine. It is not useful, if your SharePoint environment is earlier than SharePoint 2010. Another thing to keep in mind is that SharePoint Client Object Model doesn't support all the properties/methods, which are there in Server Side Object Model. Thus, in certain cases, you will feel that you have been handicapped due to SharePoint Client Object Model.

Now, coming back to the main purpose of this article, the Client Side SharePoint PowerShell libraries from CodePlex has a generic function called Initialize-SPPS which takes certain parameters like Site URL, Is2010 or IsOnline etc and many others. But using this function is not intuitive unless you read entire blog about how to use those libraries. I have created another wrapper around Initialize-SPPS function which is more intuitive so any layman user can run the script and can be re-used to any other functions based on this wrapper. You can keep on building your own client side PowerShell functions based on it. I will post more such client side PowerShell script in future which will be depend on this wrapper.

Purpose

Pre-requisites

How to make it work

Note:

Let me know your comments/feedback/issues.

Updated on 11-May-2017
You don't need to download anything from code plex now. Updated attachment contains all the update PowerShell module files which you can download and save to your local drive. Open the PowerShell window and follow below steps:
1. Import module .\spps.psm1
2. Test-SPPS
If Client libraries for SP 2010, SP 2013 and SharePoint Online are installed, it displays appropriate message. If not, it opens respective download pages in the default browser window. Install all the client libraries required for SharePoint, close and re-open PowerShell window and repeat above steps.
3. Run script: Get-SharePointContext.ps1
This script provides user friendly interface to connect to your SharePoint site created global variables mentioned above.