Skip to content

Instantly share code, notes, and snippets.

@AsishP
Created April 23, 2018 10:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AsishP/98d8a765318dabb71bf76d3133b6a61c to your computer and use it in GitHub Desktop.
Save AsishP/98d8a765318dabb71bf76d3133b6a61c to your computer and use it in GitHub Desktop.
Connect-SPOService "https://[tenant]-admin.sharepoint.com"
Connect-PnPOnline "[siteurl]"
Set-SPOSite "[siteurl]" -DenyAddAndCustomizePages 0
Set-PnPPropertyBagValue -Key "[propertyName]" -Value "[propertyValue]" -Indexed
Set-SPOSite "[siteurl]" -DenyAddAndCustomizePages 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment