This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add references to SharePoint client assemblies and authenticate to Office 365 site - required for CSOM | |
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” | |
Add-Type -Path “C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.WorkflowServices.dll” | |
# Specify tenant admin and site URL | |
$SiteUrl = "mysiteurl" | |
$ListName = "mylistname" | |
$UserName = "myusername" | |
$SecurePassword = ConvertTo-SecureString "mypassword" -AsPlainText -Force |