How to Manage Custom Script Settings in OneDrive and SharePoint
Question details
Administrators need to know how to manage custom script settings and whether specific PowerShell policies remain permanent after recent rollouts.

- Product
- Microsoft SharePoint and OneDrive
- Device & OS
- not provided
- Scenario
- Configuring tenant security policies and managing unmanaged scripts during a Microsoft rollout.
- Observed behavior
- Microsoft is changing how custom scripts work, creating uncertainty about whether the DelayDenyAddAndCustomizePagesEnforcement setting requires periodic renewal.
Ensure you have Global Administrator or SharePoint Administrator privileges in Microsoft 365 to view or modify tenant-level script policies.
Verify Current Policy via Microsoft 365 Support
Because custom script behavior depends on Microsoft's rollout schedule and your tenant configuration, opening a service request is the most reliable way to confirm your organization's policy.
Microsoft frequently updates security policies for SharePoint and OneDrive. Contacting support ensures you receive accurate information specific to your tenant's rollout phase.
Log in to the Microsoft 365 admin center using your administrator credentials.
Click on 'Support' in the left-hand navigation pane and select 'Help & support' or 'New service request'.
Describe your query regarding the DelayDenyAddAndCustomizePagesEnforcement setting and ask the support team to confirm the current custom script policy for your tenant.

Periodically Re-enable Custom Scripts Using PowerShell
If you need to run unmanaged scripts immediately, you can re-enable the custom script setting via PowerShell, though it may require periodic renewal.
Looking for a Simpler Office Solution?
If managing complex tenant policies and PowerShell scripts in Microsoft 365 is slowing you down, consider WPS Office as a lightweight, user-friendly alternative for everyday document creation and sharing.
- 1. Download the Installer: Visit the official WPS website and download the free installation package.
- 2. Install the Software: Run the installer and follow the on-screen instructions to set up WPS Office on your device.
- 3. Start Creating: Open WPS Office to immediately start working with your documents without complex administrative setups.

Frequently Asked Questions
What is the DelayDenyAddAndCustomizePagesEnforcement setting?
It is a PowerShell parameter used by administrators to delay or manage Microsoft's enforcement of restrictions on custom scripts (AddAndCustomizePages) within SharePoint sites.
Will my custom script settings remain permanent?
The permanence depends on Microsoft's current rollout plan. Many tenants find that the setting must be re-enabled periodically as enforcement policies are updated.
Who has permission to change custom script settings in Microsoft 365?
Only users assigned the Global Administrator or SharePoint Administrator roles can modify custom script policies and apply PowerShell changes to a tenant.




