Skip to content

Commit 959e629

Browse files
committed
Adds an example and enhances documentation
Adds an example on how to enable custom scripting on a site collection, and improves the documentation for it.
1 parent 4336ec2 commit 959e629

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

sharepoint/sharepoint-ps/sharepoint-online/Set-SPOSite.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,12 @@ This example sets the quota for the site.
100100
> [!NOTE]
101101
> If Site Collection Storage Management is enabled for the tenant, you will not be able to set quota and will have a generic error returned. To workaround this issue, set the site collection storage management to "manual" temporarily, set your quotas and then set the site collection storage management setting back to its original setting.
102102
103+
### -----------------------EXAMPLE 6-----------------------------
104+
```
105+
Set-SPOSite -Identity https://contoso.sharepoint.com -DenyAddAndCustomizePages 0
106+
```
107+
108+
Example 6 enables Custom Scripts for the site collection.
103109

104110
## PARAMETERS
105111

@@ -173,9 +179,12 @@ Accept wildcard characters: False
173179
```
174180
175181
### -DenyAddAndCustomizePages
176-
Determines whether the Add And Customize Pages right is denied on the site collection.
182+
Determines whether the Add And Customize Pages right is denied on the site collection. This switch can also be used to enable Custom Scripts on the site collection.
183+
177184
For more information about permission levels, see User permissions and permission levels in SharePoint.
178185
186+
> [!NOTE]
187+
> Unlike the switch for enabling Custom Scripting in Administration Portal, this switch takes effect instantly.
179188
180189
```yaml
181190
Type: Boolean

0 commit comments

Comments
 (0)