Forum Discussion
Alan Trafford
Nov 29, 2016Brass Contributor
How do I set DenyAddAndCustomizePages using PnP?
Hi Is there a way I can set DenyAddAndCustomizePages using PnP? I know it can be done using "SharePoint Online Management Shell" via the Set-SPOSite command. However, this command does not ex...
- Apr 27, 2023
Alan Trafford This site will help you: Set-PnPTenantSite | PnP PowerShell
Set-PnPTenantSite -Identity "https://contoso.sharepoint.com/sites/sales" -DenyAddAndCustomizePages:$false
Manidurai Mohanamariappan
Nov 29, 2016Iron Contributor
Try below script
$status = $null DO { Write-Host "Waiting... $status" Start-Sleep -Seconds 5 $Site=Get-PnPTenantSite -url https://<Tenantname>.sharepoint.com/sites/contosobeta -Detailed $status = $Site.Status } While ($status -ne 'Active')
Alan Trafford
Nov 29, 2016Brass Contributor