Most of the time, this feature is then activated as the features are required. What is less understood is the scope of impact of this setting.
The full list of features that are impacted can be found at https://support.office.com/en-us/article/Turn-scripting-capabilities-on-or-off-1F2C515F-5D7E-448A-9FD7-835DA935584F?ui=en-US&rs=en-US&ad=US
To enable scripting, as with most of Office 365, there are two approaches:
- Use the UI
- Use PowerShell
Using the UI
- Open the SharePoint Admin centre in the Office 365 tenant
- Select Settings
- Under Custom Script select the “Allow …” checkboxes, as shown below
- Select OK
This process can take up to 24 hours
In the following PowerShell script replace “<TenantName>” with the name of the Office 365 tenant.
#Using Windows Credential Maanger to store the credentials
Connect-SPOnline -Url $AdminSiteUrl
# Enable scripting
Set-SPOSite -Identity $RootSiteUrl -DenyAddAndCustomizePages $false;
This process will be instant.