Advertisement
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 FilesCommon Filesmicrosoft sharedWeb Server Extensions15ISAPIMicrosoft.SharePoint.Client.dll"
- Add-Type -Path "c:Program FilesCommon Filesmicrosoft sharedWeb Server Extensions15ISAPIMicrosoft.SharePoint.Client.Runtime.dll"
- # Insert the credentials and the name of the admin site
- $Username="admin@tenant.onmicrosoft.com"
- $AdminPassword=Read-Host -Prompt "Password" -AsSecureString
- $Url="https://tenant.sharepoint.com/sites/teamsitewithlibraries"
- $setting=$true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement