Skip to main content

Microsoft Enforces Stricter Custom Script Controls

From September 15, 2025, Microsoft enforced stricter controls on custom scripts. DenyAddAndCustomizePages set to true by default. No new classic publishing sites.

· By Ulrich Bojko · 1 min read

Microsoft enforced stricter custom script controls across SharePoint Online starting September 15, 2025. Classic publishing site creation was also blocked.


ℹ️
Key Facts:
Enforcement date: September 15, 2025
DenyAddAndCustomizePages: Set to true by default for all sites
Classic publishing: New classic publishing sites can no longer be created
Workaround deadline: PowerShell workarounds available until March 15, 2026
Impact: Custom scripts disabled unless explicitly allowed

Organizations relying on custom scripts or planning new classic publishing sites must adapt. The PowerShell workaround (Set-SPOSite -DenyAddAndCustomizePages $false) remains available until March 2026, but Microsoft recommends migrating to modern development approaches using SPFx.

Sources: C# Corner · MacroView

Updated on Feb 15, 2026