Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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