To totally unlock this section you need to Log-in
As Sharepoint developer or administrators, we will have to look for a necessary component that is required when preparing client machines for CSOM based PowerShell development.
Microsoft has packaged all the SharePoint client-side programming DLLs using the SharePoint
In order to get these client components for SharePoint, we will need to search SharePoint
Sharepoint Server Online: https://www.microsoft.com/en-us/download/details.aspx?id=42038 Sharepoint Server 2016: https://www.microsoft.com/en-us/download/details.aspx?id=51679 Sharepoint Server 2013: https://www.microsoft.com/en-us/download/details.aspx?id=35585
Before downloading, you can choose the version of the MSI file depending on the type of operating system you are using. In case you are using a 64-bit OS you will need to download the 64-bit version of the MSI file proposed.
Once the MSI file has been downloaded, we can start the installation by right clicking and then selecting the "Install" option from the menu, or simply double clicking it as all normal Windows installers.
Now, on the Install Wizard, just select "Next" on the next step and then finally Install, so let's wait until the installer phase is completed.
Once the installation has been completed, there will be new folder structure created just like in SharePoint Server. You will find all the SharePoint Client Side DLLs in the ISAPI folder on your machine as shown below:
You can refer to these files in your Powershell scripts that are based on CSOM.
Add the CSOM references to your script
The following are some examples on how to refer to the Sharepoint DLLs to be ready doing stuff from Powershell on a Sharepoint server we have access. In the following examples the path here may need to change if you use a different version or installation path.
Add-Type -Path "C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.dll" Add-Type -Path "C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.Runtime.dll"
Note that you might need some other references (depending on what your script does) for example:
Add-Type -Path "C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.Taxonomy.dll"
Download
The following links are related to the Sharepoint Client Components SDK packages, and hosted on heelpbook.net. Only registered users (free registration) can access these downloads.
Sharepoint 2013 Client Components SDK Sharepoint 2016 Client Components SDK Sharepoint Online Client Components SDK