Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Paths to SDK. Please verify location on your computer.
- 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"
- # Insert the credentials and the name of the admin site
- $Username="2190@sampletenant.onmicrosoft.com"
- $AdminPassword=Read-Host -Prompt "Password" -AsSecureString
- $AdminUrl="https://sampletenant.sharepoint.com/sites/dgd"
Add Comment
Please, Sign In to add comment