Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12;
- $Password = Read-Host -Prompt "Please enter your password" -AsSecureString
- $Creds = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($User,$Password)
- $Context = New-Object Microsoft.SharePoint.Client.ClientContext($SiteURL)
- $Creds = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($User,$Password)
- $Context.Credentials = $Creds
Add Comment
Please, Sign In to add comment