Advertisement
Guest User

Untitled

a guest
Nov 11th, 2016
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. # Paths to SDK. Please verify location on your computer.
  2. Add-Type -Path "c:Program FilesCommon Filesmicrosoft sharedWeb Server Extensions15ISAPIMicrosoft.SharePoint.Client.dll"
  3. Add-Type -Path "c:Program FilesCommon Filesmicrosoft sharedWeb Server Extensions15ISAPIMicrosoft.SharePoint.Client.Runtime.dll"
  4.  
  5. # Insert the credentials and the name of the admin site
  6. $Username="admin@tenant.onmicrosoft.com"
  7. $AdminPassword=Read-Host -Prompt "Password" -AsSecureString
  8. $Url="https://tenant.sharepoint.com/sites/teamsitewithlibraries"
  9. $setting=$true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement