Advertisement
Guest User

Untitled

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