July 2017
Beginner
222 pages
5h 2m
English
As a minimum, we will need to load modules via the Add-Type cmdlet:
Add-Type -Path "path to fileMicrosoft.SharePoint.Client.Runtime.dll" Add-Type -Path "path to fileMicrosoft.SharePoint.Client.dll"
With the modules loaded, we need to establish a connection. The connection is managed by the ClientContext object. To create an instance of ClientContext, we need to pass a URL and user credentials. In contrast with the SPO command, ClientContext works with individual site collections. In this case, the URL should not be the admin URL but the URL of the site collection in question:
$siteUrl = "https://mytest321.sharepoint.com";$user = "admin1@mytest321.onmicrosoft.com";$password = Read-Host -Prompt "Input ...
Read now
Unlock full access