en-US

DelayDenyAddAndCustomizePagesEnforcementOnClassicPublishingSites

Parameter of SPOTenant

Description

This parameter controls how SharePoint will deal with classic publishing sites (templates BLANKINTERNETCONTAINER#0, CMSPUBLISHING#0 and BLANKINTERNET#0) where custom scripts are allowed.

The valid values are:

  • False (default) - for classic publishing site collections where administrators enabled the ability to add custom script, SharePoint will revoke that ability within 24 hours from the last time this setting was changed.
  • True - All changes performed by administrators to custom script settings are preserved.

Microsoft Learn documentation

Characteristics

Type
System.Boolean
Parameter sets
(All)

Apply

This value type (System.Boolean) must be built by hand: see the examples on the policy page and the Microsoft documentation.