Search

MC714186 – (Updated) Remove Custom Script setting in OneDrive and SharePoint

OneDrive for Business logo

check before: 2024-02-23

Product:

Microsoft 365 admin center, OneDrive, SharePoint

Platform:

Online, Web, World tenant

Status:

Change type:

Admin impact, Retirement, Updated message, User impact

Links:

Details:

The Custom Script setting in SharePoint and OneDrive will be removed by early-May 2024. A new PowerShell command, DelayDenyAddAndCustomizePagesEnforcement, will allow administrators to delay the change until mid-November 2024. The NoScriptSite setting will be configured to True for all existing sites except for specific site templates. Existing scripts in OneDrive and SharePoint sites will not be affected. Administrators can still permit the execution of custom scripts on specific sites using the Set-SPOSite command or from the Active sites page in the SharePoint Admin Center.
Updated March 28, 2024: Setting Custom scripts setting for a site in SharePoint tenant admin center will be fully available by early-April (Previously March).
PowerShell command (DelayDenyAddAndCustomizePagesEnforcement) to delay the change will be fully available by mid- April (Previously March).
The enforcement to set NoScriptSite to True for all existing SharePoint sites and OneDrive sites if DelayDenyAddAndCustomizePagesEnforcement is not set to True will start late-April and be completed by early-May (Previously March)
There are changes happening to Custom script settings between April and May 2024 (Previously March).
The Custom Script setting, which determines if users can execute custom scripts on personal sites and self-service created sites will be removed by early-May (Previously March).
This setting is currently located in the SharePoint Admin Center, under Settings -> Classic Settings.

A new PowerShell command, "DelayDenyAddAndCustomizePagesEnforcement", has been introduced. This command is available in the SharePoint Online Management Shell version 16.0.24524.12000, or above which allows delay of the change to custom script set on the Tenant until mid-November 2024 (previously May).


Note: that while this cmdlet is available in the latest management shell, running the cmdlet will result in an error (The requested operation is part of an experimental feature that is not supported in the current environment) until Mid-April 2024 (Previously March) when the settings are shipped.
* False (default) - for 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. When the value is set to true, a banner shows in the active sites list of the SharePoint admin center informing that changes to custom scripts are permanent.
Set-SPOTenant -DelayDenyAddAndCustomizePagesEnforcement $True
Please be aware that the new PowerShell command will only be accessible until mid-November 2024 (previously May). Post that period, on SharePoint sites if administrators wish to continue using features that are only available when unmanaged custom scripts are permitted to run, they will need to re-enable the running of custom scripts every 24 hours. This option does not impact existing custom scripts.
The NoScriptSite setting will be configured to True for all existing SharePoint sites and OneDrive sites except for below mentioned sites templates.


BLANKINTERNETCONTAINER#0 = Classic Publishing Portal site
CMSPUBLISHING#0 = Publishing Site
BLANKINTERNET#0 = Publishing Site
GROUP#0 = Team site
APPCATALOG#0 = App Catalog
CSPCONTAINER#0 = CSP Container
The execution of existing scripts in OneDrive and SharePoint sites will remain unaffected.
There will not be an option to enable custom script on OneDrive sites once the delay set using DelayDenyAddAndCustomizePagesEnforcement ends in mid-November 2024 (previously May).
Customers will retain the ability to permit the execution of custom scripts on specific SharePoint sites using the Set-SPOSite <SiteURL> -DenyAddAndCustomizePages PowerShell command or from the Active sites page in the SharePoint Admin Center.

Any modifications made to a site will be automatically reverted to False status within 24 hours, unless the new PowerShell command “DelayDenyAddAndCustomizePagesEnforcement” is used prior to mid-November 2024 (previously May). After mid-November, the 24 hour reversion will occur regardless of this setting.
[When this will happen:]
The Custom Script setting from SharePoint admin center will be removed early-May (Previously March).
The new PowerShell command will be available by mid-April (Previously March).

Change Category:
XXXXXXX ...

Scope:
XXXXXXX ...

Release Phase:

Created:
2024-02-09

updated:
2024-03-29

the free basic plan is required to see all details. Sign up here


A cloudsocut.one plan is required to see all the changed details. If you are already a customer, choose login.
If you are new to cloudscout.one please choose a plan.


changes*

DatePropertyoldnew
2024-03-29MC MessagesUpdated March 27, 2024: Setting Custom scripts setting for a site in SharePoint tenant admin center will be fully available by early-April (Previously March)
PowerShell command (DelayDenyAddAndCustomizePagesEnforcement) to delay the change will be fully available by mid-April (Previously March)
The enforcement to set NoScriptSite to True for all existing SharePoint sites and OneDrive sites if DelayDenyAddAndCustomizePagesEnforcement is not set to True will start late-April and be completed by early-May (Previously March)
There are changes happening to Custom script settings between April and May 2024 (Previously March).
The Custom Script setting, which determines if users can execute custom scripts on personal sites and self-service created sites will be removed by early-May (Previously March).
This setting is currently located in the SharePoint Admin Center, under Settings -> Classic Settings.

A new PowerShell command, "DelayDenyAddAndCustomizePagesEnforcement", has been introduced. This command is available in the SharePoint Online Management Shell version 16.0.24524.12000, or above which allows delay of the change to custom script set on the Tenant until mid-November 2024 (previously May).


Note: that while this cmdlet is available in the latest management shell, running the cmdlet will result in an error (The requested operation is part of an experimental feature that is not supported in the current environment) until Mid-April 2024 (Previously March) when the settings are shipped.
* False (default) - for 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. When the value is set to true, a banner shows in the active sites list of the SharePoint admin center informing that changes to custom scripts are permanent.
Set-SPOTenant -DelayDenyAddAndCustomizePagesEnforcement $True
Please be aware that the new PowerShell command will only be accessible until mid-November 2024 (previously May). Post that period, on SharePoint sites if administrators wish to continue using features that are only available when unmanaged custom scripts are permitted to run, they will need to re-enable the running of custom scripts every 24 hours. This option does not impact existing custom scripts.
The NoScriptSite setting will be configured to True for all existing SharePoint sites and OneDrive sites except for below mentioned sites templates.


BLANKINTERNETCONTAINER#0 = Classic Publishing Portal site
CMSPUBLISHING#0 = Publishing Site
BLANKINTERNET#0 = Publishing Site
GROUP#0 = Team site
APPCATALOG#0 = App Catalog
CSPCONTAINER#0 = CSP Container
The execution of existing scripts in OneDrive and SharePoint sites will remain unaffected.
There will not be an option to enable custom script on OneDrive sites once the delay set using DelayDenyAddAndCustomizePagesEnforcement ends in mid-November 2024 (previously May).
Customers will retain the ability to permit the execution of custom scripts on specific SharePoint sites using the Set-SPOSite <SiteURL> -DenyAddAndCustomizePages PowerShell command or from the Active sites page in the SharePoint Admin Center.

Any modifications made to a site will be automatically reverted to False status within 24 hours, unless the new PowerShell command “DelayDenyAddAndCustomizePagesEnforcement” is used prior to mid-November 2024 (previously May). After mid-November, the 24 hour reversion will occur regardless of this setting.
[When this will happen:]
The Custom Script setting from SharePoint admin center will be removed in March 2024.
The new PowerShell command will be available in March 2024.
Updated March 28, 2024: Setting Custom scripts setting for a site in SharePoint tenant admin center will be fully available by early-April (Previously March).
PowerShell command (DelayDenyAddAndCustomizePagesEnforcement) to delay the change will be fully available by mid- April (Previously March).
The enforcement to set NoScriptSite to True for all existing SharePoint sites and OneDrive sites if DelayDenyAddAndCustomizePagesEnforcement is not set to True will start late-April and be completed by early-May (Previously March)
There are changes happening to Custom script settings between April and May 2024 (Previously March).
The Custom Script setting, which determines if users can execute custom scripts on personal sites and self-service created sites will be removed by early-May (Previously March).
This setting is currently located in the SharePoint Admin Center, under Settings -> Classic Settings.

A new PowerShell command, "DelayDenyAddAndCustomizePagesEnforcement", has been introduced. This command is available in the SharePoint Online Management Shell version 16.0.24524.12000, or above which allows delay of the change to custom script set on the Tenant until mid-November 2024 (previously May).


Note: that while this cmdlet is available in the latest management shell, running the cmdlet will result in an error (The requested operation is part of an experimental feature that is not supported in the current environment) until Mid-April 2024 (Previously March) when the settings are shipped.
* False (default) - for 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. When the value is set to true, a banner shows in the active sites list of the SharePoint admin center informing that changes to custom scripts are permanent.
Set-SPOTenant -DelayDenyAddAndCustomizePagesEnforcement $True
Please be aware that the new PowerShell command will only be accessible until mid-November 2024 (previously May). Post that period, on SharePoint sites if administrators wish to continue using features that are only available when unmanaged custom scripts are permitted to run, they will need to re-enable the running of custom scripts every 24 hours. This option does not impact existing custom scripts.
The NoScriptSite setting will be configured to True for all existing SharePoint sites and OneDrive sites except for below mentioned sites templates.


BLANKINTERNETCONTAINER#0 = Classic Publishing Portal site
CMSPUBLISHING#0 = Publishing Site
BLANKINTERNET#0 = Publishing Site
GROUP#0 = Team site
APPCATALOG#0 = App Catalog
CSPCONTAINER#0 = CSP Container
The execution of existing scripts in OneDrive and SharePoint sites will remain unaffected.
There will not be an option to enable custom script on OneDrive sites once the delay set using DelayDenyAddAndCustomizePagesEnforcement ends in mid-November 2024 (previously May).
Customers will retain the ability to permit the execution of custom scripts on specific SharePoint sites using the Set-SPOSite <SiteURL> -DenyAddAndCustomizePages PowerShell command or from the Active sites page in the SharePoint Admin Center.

Any modifications made to a site will be automatically reverted to False status within 24 hours, unless the new PowerShell command “DelayDenyAddAndCustomizePagesEnforcement” is used prior to mid-November 2024 (previously May). After mid-November, the 24 hour reversion will occur regardless of this setting.
[When this will happen:]
The Custom Script setting from SharePoint admin center will be removed early-May (Previously March).
The new PowerShell command will be available by mid-April (Previously March).
2024-03-29MC Last Updated03/27/2024 22:28:072024-03-28T21:43:50Z
2024-03-29MC SummaryThe Custom Script setting will be removed from OneDrive and SharePoint sites by early-May 2024. A new PowerShell command, DelayDenyAddAndCustomizePagesEnforcement, will allow the delay of this change until mid-November 2024. The NoScriptSite setting will be configured to True for all existing SharePoint and OneDrive sites. Existing scripts in OneDrive and SharePoint sites will remain unaffected. Administrators can permit the execution of custom scripts on specific SharePoint sites using the Set-SPOSite command.The Custom Script setting in SharePoint and OneDrive will be removed by early-May 2024. A new PowerShell command, DelayDenyAddAndCustomizePagesEnforcement, will allow administrators to delay the change until mid-November 2024. The NoScriptSite setting will be configured to True for all existing sites except for specific site templates. Existing scripts in OneDrive and SharePoint sites will not be affected. Administrators can still permit the execution of custom scripts on specific sites using the Set-SPOSite command or from the Active sites page in the SharePoint Admin Center.
2024-03-28MC MessagesUpdated March 26, 2024: Setting Custom scripts setting for a site in SharePoint tenant admin center will be fully available by early-April (Previously March)
PowerShell command (DelayDenyAddAndCustomizePagesEnforcement) to delay the change will be fully available by mid-April (Previously March)
The enforcement to set NoScriptSite to True for all existing SharePoint sites and OneDrive sites if DelayDenyAddAndCustomizePagesEnforcement is not set to True will start late-April and be completed by early-May (Previously March)
There are changes happening to Custom script settings between April and May 2024 (Previously March).
The Custom Script setting, which determines if users can execute custom scripts on personal sites and self-service created sites will be removed by early-May (Previously March).
This setting is currently located in the SharePoint Admin Center, under Settings -> Classic Settings.

A new PowerShell command, "DelayDenyAddAndCustomizePagesEnforcement", has been introduced. This command is available in the SharePoint Online Management Shell version 16.0.24524.12000, or above which allows delay of the change to custom script set on the Tenant until May 2024.


Note: that while this cmdlet is available in the latest management shell, running the cmdlet will result in an error (The requested operation is part of an experimental feature that is not supported in the current environment) until Mid-April 2024 (Previously March) when the settings are shipped.
* False (default) - for 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. When the value is set to true, a banner shows in the active sites list of the SharePoint admin center informing that changes to custom scripts are permanent.
Set-SPOTenant -DelayDenyAddAndCustomizePagesEnforcement $True
Please be aware that the new PowerShell command will only be accessible until May 2024. Post that period, on SharePoint sites if administrators wish to continue using features that are only available when unmanaged custom scripts are permitted to run, they will need to re-enable the running of custom scripts every 24 hours. This option does not impact existing custom scripts.
The NoScriptSite setting will be configured to True for all existing SharePoint sites and OneDrive sites except for below mentioned sites templates.


BLANKINTERNETCONTAINER#0 = Classic Publishing Portal site
CMSPUBLISHING#0 = Publishing Site
BLANKINTERNET#0 = Publishing Site
GROUP#0 = Team site
APPCATALOG#0 = App Catalog
CSPCONTAINER#0 = CSP Container
The execution of existing scripts in OneDrive and SharePoint sites will remain unaffected.
There will not be an option to enable custom script on OneDrive sites once the delay set using DelayDenyAddAndCustomizePagesEnforcement ends in May 2024.
Customers will retain the ability to permit the execution of custom scripts on specific SharePoint sites using the Set-SPOSite <SiteURL> -DenyAddAndCustomizePages PowerShell command or from the Active sites page in the SharePoint Admin Center.

Any modifications made to a site will be automatically reverted to False status within 24 hours, unless the new PowerShell command “DelayDenyAddAndCustomizePagesEnforcement” is used prior to May 2024. After May, the 24 hour reversion will occur regardless of this setting.
[When this will happen:]
The Custom Script setting from SharePoint admin center will be removed in March 2024.
The new PowerShell command will be available in March 2024.
Updated March 27, 2024: Setting Custom scripts setting for a site in SharePoint tenant admin center will be fully available by early-April (Previously March)
PowerShell command (DelayDenyAddAndCustomizePagesEnforcement) to delay the change will be fully available by mid-April (Previously March)
The enforcement to set NoScriptSite to True for all existing SharePoint sites and OneDrive sites if DelayDenyAddAndCustomizePagesEnforcement is not set to True will start late-April and be completed by early-May (Previously March)
There are changes happening to Custom script settings between April and May 2024 (Previously March).
The Custom Script setting, which determines if users can execute custom scripts on personal sites and self-service created sites will be removed by early-May (Previously March).
This setting is currently located in the SharePoint Admin Center, under Settings -> Classic Settings.

A new PowerShell command, "DelayDenyAddAndCustomizePagesEnforcement", has been introduced. This command is available in the SharePoint Online Management Shell version 16.0.24524.12000, or above which allows delay of the change to custom script set on the Tenant until mid-November 2024 (previously May).


Note: that while this cmdlet is available in the latest management shell, running the cmdlet will result in an error (The requested operation is part of an experimental feature that is not supported in the current environment) until Mid-April 2024 (Previously March) when the settings are shipped.
* False (default) - for 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. When the value is set to true, a banner shows in the active sites list of the SharePoint admin center informing that changes to custom scripts are permanent.
Set-SPOTenant -DelayDenyAddAndCustomizePagesEnforcement $True
Please be aware that the new PowerShell command will only be accessible until mid-November 2024 (previously May). Post that period, on SharePoint sites if administrators wish to continue using features that are only available when unmanaged custom scripts are permitted to run, they will need to re-enable the running of custom scripts every 24 hours. This option does not impact existing custom scripts.
The NoScriptSite setting will be configured to True for all existing SharePoint sites and OneDrive sites except for below mentioned sites templates.


BLANKINTERNETCONTAINER#0 = Classic Publishing Portal site
CMSPUBLISHING#0 = Publishing Site
BLANKINTERNET#0 = Publishing Site
GROUP#0 = Team site
APPCATALOG#0 = App Catalog
CSPCONTAINER#0 = CSP Container
The execution of existing scripts in OneDrive and SharePoint sites will remain unaffected.
There will not be an option to enable custom script on OneDrive sites once the delay set using DelayDenyAddAndCustomizePagesEnforcement ends in mid-November 2024 (previously May).
Customers will retain the ability to permit the execution of custom scripts on specific SharePoint sites using the Set-SPOSite <SiteURL> -DenyAddAndCustomizePages PowerShell command or from the Active sites page in the SharePoint Admin Center.

Any modifications made to a site will be automatically reverted to False status within 24 hours, unless the new PowerShell command “DelayDenyAddAndCustomizePagesEnforcement” is used prior to mid-November 2024 (previously May). After mid-November, the 24 hour reversion will occur regardless of this setting.
[When this will happen:]
The Custom Script setting from SharePoint admin center will be removed in March 2024.
The new PowerShell command will be available in March 2024.
2024-03-28MC Last Updated03/26/2024 19:17:472024-03-27T22:28:07Z
2024-03-28MC SummaryThe Custom Script setting in OneDrive and SharePoint will be removed by early-May 2024. A new PowerShell command, "DelayDenyAddAndCustomizePagesEnforcement," allows delaying the change until May 2024. The NoScriptSite setting will be configured to True for all existing SharePoint sites and OneDrive sites except for specific site templates. Existing scripts in OneDrive and SharePoint sites will remain unaffected. Administrators can permit the execution of custom scripts on specific SharePoint sites using the Set-SPOSite command.The Custom Script setting will be removed from OneDrive and SharePoint sites by early-May 2024. A new PowerShell command, DelayDenyAddAndCustomizePagesEnforcement, will allow the delay of this change until mid-November 2024. The NoScriptSite setting will be configured to True for all existing SharePoint and OneDrive sites. Existing scripts in OneDrive and SharePoint sites will remain unaffected. Administrators can permit the execution of custom scripts on specific SharePoint sites using the Set-SPOSite command.
2024-03-27MC MessagesUpdated March 5, 2024: We have extended the support for the new PowerShell command until mid-November 2024. Thank you for your feedback.
There are changes happening to Custom script settings in March 2024.
The Custom Script setting, which determines if users can execute custom scripts on personal sites and self-service created sites will be removed.
This setting is currently located in the SharePoint Admin Center, under Settings -> Classic Settings.

A new PowerShell command, "DelayDenyAddAndCustomizePagesEnforcement", has been introduced. This command is available in the SharePoint Online Management Shell version 16.0.24524.12000, or above which allows delay of the change to custom script set on the Tenant until mid-November 2024 (previously May).


Note: that while this cmdlet is available in the latest management shell, running the cmdlet will result in an error (The requested operation is part of an experimental feature that is not supported in the current environment) until March when the settings are shipped.
* False (default) - for 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. When the value is set to true, a banner shows in the active sites list of the SharePoint admin center informing that changes to custom scripts are permanent.
Set-SPOTenant DelayDenyAddAndCustomizePagesEnforcement $True
Please be aware that the new PowerShell command will only be accessible until mid-November 2024 (previously May). Post that period, on SharePoint sites if administrators wish to continue using features that are only available when unmanaged custom scripts are permitted to run, they will need to re-enable the running of custom scripts every 24 hours. This option does not impact existing custom scripts.
The NoScriptSite setting will be configured to True for all existing SharePoint sites and OneDrive sites except for below mentioned sites templates.


BLANKINTERNETCONTAINER#0 = Classic Publishing Portal site
CMSPUBLISHING#0 = Publishing Site
BLANKINTERNET#0 = Publishing Site
GROUP#0 = Team site
APPCATALOG#0 = App Catalog
CSPCONTAINER#0 = CSP Container
The execution of existing scripts in OneDrive and SharePoint sites will remain unaffected.
There will not be an option to enable custom script on OneDrive sites once the delay set using DelayDenyAddAndCustomizePagesEnforcement ends in mid-November 2024 (previously May).
Customers will retain the ability to permit the execution of custom scripts on specific SharePoint sites using the Set-SPOSite <SiteURL> -DenyAddAndCustomizePages PowerShell command or from the Active sites page in the SharePoint Admin Center.

Any modifications made to a site will be automatically reverted to False status within 24 hours, unless the new PowerShell command “DelayDenyAddAndCustomizePagesEnforcement” is used prior to mid-November 2024 (previously May). After mid-November 2024, the 24-hour reversion will occur regardless of this setting.
[When this will happen:]
The Custom Script setting from SharePoint admin center will be removed in March 2024.
The new PowerShell command will be available in March 2024.
Updated March 26, 2024: Setting Custom scripts setting for a site in SharePoint tenant admin center will be fully available by early-April (Previously March)
PowerShell command (DelayDenyAddAndCustomizePagesEnforcement) to delay the change will be fully available by mid-April (Previously March)
The enforcement to set NoScriptSite to True for all existing SharePoint sites and OneDrive sites if DelayDenyAddAndCustomizePagesEnforcement is not set to True will start late-April and be completed by early-May (Previously March)
There are changes happening to Custom script settings between April and May 2024 (Previously March).
The Custom Script setting, which determines if users can execute custom scripts on personal sites and self-service created sites will be removed by early-May (Previously March).
This setting is currently located in the SharePoint Admin Center, under Settings -> Classic Settings.

A new PowerShell command, "DelayDenyAddAndCustomizePagesEnforcement", has been introduced. This command is available in the SharePoint Online Management Shell version 16.0.24524.12000, or above which allows delay of the change to custom script set on the Tenant until May 2024.


Note: that while this cmdlet is available in the latest management shell, running the cmdlet will result in an error (The requested operation is part of an experimental feature that is not supported in the current environment) until Mid-April 2024 (Previously March) when the settings are shipped.
* False (default) - for 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. When the value is set to true, a banner shows in the active sites list of the SharePoint admin center informing that changes to custom scripts are permanent.
Set-SPOTenant -DelayDenyAddAndCustomizePagesEnforcement $True
Please be aware that the new PowerShell command will only be accessible until May 2024. Post that period, on SharePoint sites if administrators wish to continue using features that are only available when unmanaged custom scripts are permitted to run, they will need to re-enable the running of custom scripts every 24 hours. This option does not impact existing custom scripts.
The NoScriptSite setting will be configured to True for all existing SharePoint sites and OneDrive sites except for below mentioned sites templates.


BLANKINTERNETCONTAINER#0 = Classic Publishing Portal site
CMSPUBLISHING#0 = Publishing Site
BLANKINTERNET#0 = Publishing Site
GROUP#0 = Team site
APPCATALOG#0 = App Catalog
CSPCONTAINER#0 = CSP Container
The execution of existing scripts in OneDrive and SharePoint sites will remain unaffected.
There will not be an option to enable custom script on OneDrive sites once the delay set using DelayDenyAddAndCustomizePagesEnforcement ends in May 2024.
Customers will retain the ability to permit the execution of custom scripts on specific SharePoint sites using the Set-SPOSite <SiteURL> -DenyAddAndCustomizePages PowerShell command or from the Active sites page in the SharePoint Admin Center.

Any modifications made to a site will be automatically reverted to False status within 24 hours, unless the new PowerShell command “DelayDenyAddAndCustomizePagesEnforcement” is used prior to May 2024. After May, the 24 hour reversion will occur regardless of this setting.
[When this will happen:]
The Custom Script setting from SharePoint admin center will be removed in March 2024.
The new PowerShell command will be available in March 2024.
2024-03-27MC Last Updated03/07/2024 00:31:132024-03-26T19:17:47Z
2024-03-27MC SummaryThe Custom Script setting in OneDrive and SharePoint web will be removed in March 2024. A new PowerShell command, "DelayDenyAddAndCustomizePagesEnforcement", has been introduced to delay the change to custom script set on the Tenant until mid-November 2024. The NoScriptSite setting will be configured to True for all existing SharePoint sites and OneDrive sites except for specific site templates. Existing scripts in OneDrive and SharePoint sites will remain unaffected. Administrators can permit the execution of custom scripts on specific SharePoint sites using the Set-SPOSite command.The Custom Script setting in OneDrive and SharePoint will be removed by early-May 2024. A new PowerShell command, "DelayDenyAddAndCustomizePagesEnforcement," allows delaying the change until May 2024. The NoScriptSite setting will be configured to True for all existing SharePoint sites and OneDrive sites except for specific site templates. Existing scripts in OneDrive and SharePoint sites will remain unaffected. Administrators can permit the execution of custom scripts on specific SharePoint sites using the Set-SPOSite command.
2024-03-07MC Last Updated03/05/2024 22:58:462024-03-07T00:31:13Z
2024-03-07MC Title(Updated) Remove Custom Script setting in OneDrive and SharePoint web(Updated) Remove Custom Script setting in OneDrive and SharePoint
2024-03-06MC Last Updated02/26/2024 02:54:292024-03-05T22:58:46Z
2024-03-06MC MessagesUpdated February 25, 2024: We have updated the content below with additional information for clarity. Thank you for your feedback.
There are changes happening to Custom script settings in March 2024.
The Custom Script setting, which determines if users can execute custom scripts on personal sites and self-service created sites will be removed.
This setting is currently located in the SharePoint Admin Center, under Settings -> Classic Settings.

A new PowerShell command, "DelayDenyAddAndCustomizePagesEnforcement", has been introduced. This command is available in the SharePoint Online Management Shell version 16.0.24524.12000, or above which allows delay of the change to custom script set on the Tenant until May 2024.


Note: that while this cmdlet is available in the latest management shell , running the cmdlet will result in an error (The requested operation is part of an experimental feature that is not supported in the current environment) until March when the settings are shipped.
* False (default) - for 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. When the value is set to true, a banner shows in the active sites list of the SharePoint admin center informing that changes to custom scripts are permanent.
Set-SPOTenant DelayDenyAddAndCustomizePagesEnforcement $True
Please be aware that the new PowerShell command will only be accessible until May 2024. Post that period, on SharePoint sites if administrators wish to continue using features that are only available when unmanaged custom scripts are permitted to run, they will need to re-enable the running of custom scripts every 24 hours. This option does not impact existing custom scripts.
The NoScriptSite setting will be configured to True for all existing SharePoint sites and OneDrive sites except for below mentioned sites templates.


BLANKINTERNETCONTAINER#0 = Classic Publishing Portal site
CMSPUBLISHING#0 = Publishing Site
BLANKINTERNET#0 = Publishing Site
GROUP#0 = Team site
APPCATALOG#0 = App Catalog
CSPCONTAINER#0 = CSP Container
The execution of existing scripts in OneDrive and SharePoint sites will remain unaffected.
There will not be an option to enable custom script on OneDrive sites once the delay set using DelayDenyAddAndCustomizePagesEnforcement ends in May 2024.
Customers will retain the ability to permit the execution of custom scripts on specific SharePoint sites using the Set-SPOSite <SiteURL> -DenyAddAndCustomizePages PowerShell command or from the Active sites page in the SharePoint Admin Center.

Any modifications made to a site will be automatically reverted to False status within 24 hours, unless the new PowerShell command “DelayDenyAddAndCustomizePagesEnforcement” is used prior to May 2024. After May, the 24 hour reversion will occur regardless of this setting.
[When this will happen:]
The Custom Script setting from SharePoint admin center will be removed in March 2024.
The new PowerShell command will be available in March 2024.
Updated March 5, 2024: We have extended the support for the new PowerShell command until mid-November 2024. Thank you for your feedback.
There are changes happening to Custom script settings in March 2024.
The Custom Script setting, which determines if users can execute custom scripts on personal sites and self-service created sites will be removed.
This setting is currently located in the SharePoint Admin Center, under Settings -> Classic Settings.

A new PowerShell command, "DelayDenyAddAndCustomizePagesEnforcement", has been introduced. This command is available in the SharePoint Online Management Shell version 16.0.24524.12000, or above which allows delay of the change to custom script set on the Tenant until mid-November 2024 (previously May).


Note: that while this cmdlet is available in the latest management shell, running the cmdlet will result in an error (The requested operation is part of an experimental feature that is not supported in the current environment) until March when the settings are shipped.
* False (default) - for 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. When the value is set to true, a banner shows in the active sites list of the SharePoint admin center informing that changes to custom scripts are permanent.
Set-SPOTenant DelayDenyAddAndCustomizePagesEnforcement $True
Please be aware that the new PowerShell command will only be accessible until mid-November 2024 (previously May). Post that period, on SharePoint sites if administrators wish to continue using features that are only available when unmanaged custom scripts are permitted to run, they will need to re-enable the running of custom scripts every 24 hours. This option does not impact existing custom scripts.
The NoScriptSite setting will be configured to True for all existing SharePoint sites and OneDrive sites except for below mentioned sites templates.


BLANKINTERNETCONTAINER#0 = Classic Publishing Portal site
CMSPUBLISHING#0 = Publishing Site
BLANKINTERNET#0 = Publishing Site
GROUP#0 = Team site
APPCATALOG#0 = App Catalog
CSPCONTAINER#0 = CSP Container
The execution of existing scripts in OneDrive and SharePoint sites will remain unaffected.
There will not be an option to enable custom script on OneDrive sites once the delay set using DelayDenyAddAndCustomizePagesEnforcement ends in mid-November 2024 (previously May).
Customers will retain the ability to permit the execution of custom scripts on specific SharePoint sites using the Set-SPOSite <SiteURL> -DenyAddAndCustomizePages PowerShell command or from the Active sites page in the SharePoint Admin Center.

Any modifications made to a site will be automatically reverted to False status within 24 hours, unless the new PowerShell command “DelayDenyAddAndCustomizePagesEnforcement” is used prior to mid-November 2024 (previously May). After mid-November 2024, the 24-hour reversion will occur regardless of this setting.
[When this will happen:]
The Custom Script setting from SharePoint admin center will be removed in March 2024.
The new PowerShell command will be available in March 2024.
2024-03-06MC End Time08/31/2024 09:00:002024-12-23T08:00:00Z
2024-03-06MC SummaryThe Custom Script setting in OneDrive and SharePoint web will be removed in March 2024. A new PowerShell command, "DelayDenyAddAndCustomizePagesEnforcement", has been introduced to delay the change to custom script set on the Tenant until May 2024. The NoScriptSite setting will be configured to True for all existing SharePoint sites and OneDrive sites except for specific site templates. Existing scripts in OneDrive and SharePoint sites will remain unaffected. Administrators can permit the execution of custom scripts on specific SharePoint sites using the Set-SPOSite command.The Custom Script setting in OneDrive and SharePoint web will be removed in March 2024. A new PowerShell command, "DelayDenyAddAndCustomizePagesEnforcement", has been introduced to delay the change to custom script set on the Tenant until mid-November 2024. The NoScriptSite setting will be configured to True for all existing SharePoint sites and OneDrive sites except for specific site templates. Existing scripts in OneDrive and SharePoint sites will remain unaffected. Administrators can permit the execution of custom scripts on specific SharePoint sites using the Set-SPOSite command.
2024-02-26MC MessagesUpdated February 21, 2024: We have updated the content below with additional information for clarity. Thank you for your feedback.
There are changes happening to Custom script settings in March 2024.
The Custom Script setting, which determines if users can execute custom scripts on personal sites and self-service created sites will be removed.
This setting is currently located in the SharePoint Admin Center, under Settings -> Classic Settings.

A new PowerShell command, "DelayDenyAddAndCustomizePagesEnforcement", has been introduced. This command is available in the SharePoint Online Management Shell version 16.0.24524.12000, or above which allows delay of the change to custom script set on the Tenant until May 2024.


* False (default) - for 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. When the value is set to true, a banner shows in the active sites list of the SharePoint admin center informing that changes to custom scripts are permanent.
Set-SPOTenant DelayDenyAddAndCustomizePagesEnforcement $True
Please be aware that the new PowerShell command will only be accessible until May 2024. Post that period, on SharePoint sites if administrators wish to continue using features that are only available when unmanaged custom scripts are permitted to run, they will need to re-enable the running of custom scripts every 24 hours. This option does not impact existing custom scripts.
The NoScriptSite setting will be configured to True for all existing SharePoint sites and OneDrive sites except for below mentioned sites templates.


BLANKINTERNETCONTAINER#0 = Classic Publishing Portal site
CMSPUBLISHING#0 = Publishing Site
BLANKINTERNET#0 = Publishing Site
GROUP#0 = Team site
APPCATALOG#0 = App Catalog
CSPCONTAINER#0 = CSP Container
The execution of existing scripts in OneDrive and SharePoint sites will remain unaffected.
There will not be an option to enable custom script on OneDrive sites once the delay set using DelayDenyAddAndCustomizePagesEnforcement ends in May 2024.
Customers will retain the ability to permit the execution of custom scripts on specific SharePoint sites using the Set-SPOSite <SiteURL> -DenyAddAndCustomizePages PowerShell command or from the Active sites page in the SharePoint Admin Center.

Any modifications made to a site will be automatically reverted to False status within 24 hours, unless the new PowerShell command “DelayDenyAddAndCustomizePagesEnforcement” is used prior to May 2024. After May, the 24 hour reversion will occur regardless of this setting.
[When this will happen:]
The Custom Script setting from SharePoint admin center will be removed in March 2024.
The new PowerShell command will be available in March 2024.
Updated February 25, 2024: We have updated the content below with additional information for clarity. Thank you for your feedback.
There are changes happening to Custom script settings in March 2024.
The Custom Script setting, which determines if users can execute custom scripts on personal sites and self-service created sites will be removed.
This setting is currently located in the SharePoint Admin Center, under Settings -> Classic Settings.

A new PowerShell command, "DelayDenyAddAndCustomizePagesEnforcement", has been introduced. This command is available in the SharePoint Online Management Shell version 16.0.24524.12000, or above which allows delay of the change to custom script set on the Tenant until May 2024.


Note: that while this cmdlet is available in the latest management shell , running the cmdlet will result in an error (The requested operation is part of an experimental feature that is not supported in the current environment) until March when the settings are shipped.
* False (default) - for 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. When the value is set to true, a banner shows in the active sites list of the SharePoint admin center informing that changes to custom scripts are permanent.
Set-SPOTenant DelayDenyAddAndCustomizePagesEnforcement $True
Please be aware that the new PowerShell command will only be accessible until May 2024. Post that period, on SharePoint sites if administrators wish to continue using features that are only available when unmanaged custom scripts are permitted to run, they will need to re-enable the running of custom scripts every 24 hours. This option does not impact existing custom scripts.
The NoScriptSite setting will be configured to True for all existing SharePoint sites and OneDrive sites except for below mentioned sites templates.


BLANKINTERNETCONTAINER#0 = Classic Publishing Portal site
CMSPUBLISHING#0 = Publishing Site
BLANKINTERNET#0 = Publishing Site
GROUP#0 = Team site
APPCATALOG#0 = App Catalog
CSPCONTAINER#0 = CSP Container
The execution of existing scripts in OneDrive and SharePoint sites will remain unaffected.
There will not be an option to enable custom script on OneDrive sites once the delay set using DelayDenyAddAndCustomizePagesEnforcement ends in May 2024.
Customers will retain the ability to permit the execution of custom scripts on specific SharePoint sites using the Set-SPOSite <SiteURL> -DenyAddAndCustomizePages PowerShell command or from the Active sites page in the SharePoint Admin Center.

Any modifications made to a site will be automatically reverted to False status within 24 hours, unless the new PowerShell command “DelayDenyAddAndCustomizePagesEnforcement” is used prior to May 2024. After May, the 24 hour reversion will occur regardless of this setting.
[When this will happen:]
The Custom Script setting from SharePoint admin center will be removed in March 2024.
The new PowerShell command will be available in March 2024.
2024-02-26MC Last Updated02/21/2024 23:10:032024-02-26T02:54:29Z
2024-02-22MC MessagesUpdated February 16, 2024: We have updated the content below with additional information for clarity. Thank you for your feedback.
There are changes happening to Custom script settings in March 2024.
The Custom Script setting, which determines if users can execute custom scripts on personal sites and self-service created sites will be removed.
This setting is currently located in the SharePoint Admin Center, under Settings -> Classic Settings.

A new PowerShell command, "DelayDenyAddAndCustomizePagesEnforcement", has been introduced. This command is available in the SharePoint Online Management Shell version 16.0.24524.12000, or above which allows delay of the change to custom script set on the Tenant until May 2024.


* False (default) - for 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. When the value is set to true, a banner shows in the active sites list of the SharePoint admin center informing that changes to custom scripts are permanent.
Set-SPOTenant DelayDenyAddAndCustomizePagesEnforcement $True
Please be aware that the new PowerShell command will only be accessible until May 2024. Post that period, on SharePoint sites if administrators wish to continue using features that are only available when unmanaged custom scripts are permitted to run, they will need to re-enable the running of custom scripts every 24 hours. This option does not impact existing custom scripts.
The NoScriptSite setting will be configured to True for all existing SharePoint sites and OneDrive sites except for below mentioned sites templates.


BLANKINTERNETCONTAINER#0 = Classic Publishing Portal site
CMSPUBLISHING#0 = Publishing Site
BLANKINTERNET#0 = Publishing Site
GROUP#0 = Team site
APPCATALOG#0 = App Catalog
CSPCONTAINER#0 = CSP Container
The execution of existing scripts in OneDrive and SharePoint sites will remain unaffected.
There will not be an option to enable custom script on OneDrive sites once the delay set using DelayDenyAddAndCustomizePagesEnforcement ends in May 2024.
Customers will retain the ability to permit the execution of custom scripts on specific SharePoint sites using the Set-SPOSite <SiteURL> -DenyAddAndCustomizePages PowerShell command or from the Active sites page in the SharePoint Admin Center.

Any modifications made to a site will be automatically reverted to False status within 24 hours, unless the new PowerShell command “DelayDenyAddAndCustomizePagesEnforcement” is used prior to May 2024. After May, the 24 hour reversion will occur regardless of this setting.
[When this will happen:]
The Custom Script setting from SharePoint admin center will be removed in March 2024.
Updated February 21, 2024: We have updated the content below with additional information for clarity. Thank you for your feedback.
There are changes happening to Custom script settings in March 2024.
The Custom Script setting, which determines if users can execute custom scripts on personal sites and self-service created sites will be removed.
This setting is currently located in the SharePoint Admin Center, under Settings -> Classic Settings.

A new PowerShell command, "DelayDenyAddAndCustomizePagesEnforcement", has been introduced. This command is available in the SharePoint Online Management Shell version 16.0.24524.12000, or above which allows delay of the change to custom script set on the Tenant until May 2024.


* False (default) - for 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. When the value is set to true, a banner shows in the active sites list of the SharePoint admin center informing that changes to custom scripts are permanent.
Set-SPOTenant DelayDenyAddAndCustomizePagesEnforcement $True
Please be aware that the new PowerShell command will only be accessible until May 2024. Post that period, on SharePoint sites if administrators wish to continue using features that are only available when unmanaged custom scripts are permitted to run, they will need to re-enable the running of custom scripts every 24 hours. This option does not impact existing custom scripts.
The NoScriptSite setting will be configured to True for all existing SharePoint sites and OneDrive sites except for below mentioned sites templates.


BLANKINTERNETCONTAINER#0 = Classic Publishing Portal site
CMSPUBLISHING#0 = Publishing Site
BLANKINTERNET#0 = Publishing Site
GROUP#0 = Team site
APPCATALOG#0 = App Catalog
CSPCONTAINER#0 = CSP Container
The execution of existing scripts in OneDrive and SharePoint sites will remain unaffected.
There will not be an option to enable custom script on OneDrive sites once the delay set using DelayDenyAddAndCustomizePagesEnforcement ends in May 2024.
Customers will retain the ability to permit the execution of custom scripts on specific SharePoint sites using the Set-SPOSite <SiteURL> -DenyAddAndCustomizePages PowerShell command or from the Active sites page in the SharePoint Admin Center.

Any modifications made to a site will be automatically reverted to False status within 24 hours, unless the new PowerShell command “DelayDenyAddAndCustomizePagesEnforcement” is used prior to May 2024. After May, the 24 hour reversion will occur regardless of this setting.
[When this will happen:]
The Custom Script setting from SharePoint admin center will be removed in March 2024.
The new PowerShell command will be available in March 2024.
2024-02-22MC Last Updated02/16/2024 22:05:122024-02-21T23:10:03Z
2024-02-22MC SummaryThe Custom Script setting in OneDrive and SharePoint web will be removed in March 2024. A new PowerShell command, "DelayDenyAddAndCustomizePagesEnforcement", has been introduced to delay the change to custom script set on the Tenant until May 2024. The NoScriptSite setting will be configured to True for all existing SharePoint sites and OneDrive sites except for specific site templates. Existing scripts in OneDrive and SharePoint sites will remain unaffected. Administrators can permit the execution of custom scripts on specific SharePoint sites using the Set-SPOSite command.
2024-02-17MC prepareThis setting will be removed by default in March 2024, but you can request an extension within the SharePoint admin center. This will keep the setting available until June 2024.
Review the following for additional information: Allow or prevent custom script
https://learn.microsoft.com/sharepoint/allow-or-prevent-custom-script
No extensions will be granted beyond the mentioned period.
It may be beneficial to inform all site owners about this modification and make necessary updates to your training materials and documentation accordingly.
Review the following for additional information: Allow or prevent custom script
https://learn.microsoft.com/sharepoint/allow-or-prevent-custom-script
2024-02-17MC MessageTagNamesUser impact, Admin impact, RetirementUpdated message, User impact, Admin impact, Retirement
2024-02-17MC Last Updated02/09/2024 02:06:422024-02-16T22:05:12Z
2024-02-17MC MessagesIn the SharePoint admin center, there is a Custom Script setting that controls whether users can run custom scripts in OneDrive and SharePoint sites. This setting will be removed in March 2024.
By removing this setting, Administrators will no longer be able to control the default behavior on self-service created sites or personal sites. However, customers will still be able to temporarily enable the ability to run custom script by using PowerShell, as described in the articles mentioned below.
By removing this setting, administrators will no longer be able to add, modify or remove scripts. This will not impact the ability to execute existing scripts in OneDrive and SharePoint sites.
[When this will happen:]
This setting will be removed in March 2024.
Updated February 16, 2024: We have updated the content below with additional information for clarity. Thank you for your feedback.
There are changes happening to Custom script settings in March 2024.
The Custom Script setting, which determines if users can execute custom scripts on personal sites and self-service created sites will be removed.
This setting is currently located in the SharePoint Admin Center, under Settings -> Classic Settings.

A new PowerShell command, "DelayDenyAddAndCustomizePagesEnforcement", has been introduced. This command is available in the SharePoint Online Management Shell version 16.0.24524.12000, or above which allows delay of the change to custom script set on the Tenant until May 2024.


* False (default) - for 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. When the value is set to true, a banner shows in the active sites list of the SharePoint admin center informing that changes to custom scripts are permanent.
Set-SPOTenant DelayDenyAddAndCustomizePagesEnforcement $True
Please be aware that the new PowerShell command will only be accessible until May 2024. Post that period, on SharePoint sites if administrators wish to continue using features that are only available when unmanaged custom scripts are permitted to run, they will need to re-enable the running of custom scripts every 24 hours. This option does not impact existing custom scripts.
The NoScriptSite setting will be configured to True for all existing SharePoint sites and OneDrive sites except for below mentioned sites templates.


BLANKINTERNETCONTAINER#0 = Classic Publishing Portal site
CMSPUBLISHING#0 = Publishing Site
BLANKINTERNET#0 = Publishing Site
GROUP#0 = Team site
APPCATALOG#0 = App Catalog
CSPCONTAINER#0 = CSP Container
The execution of existing scripts in OneDrive and SharePoint sites will remain unaffected.
There will not be an option to enable custom script on OneDrive sites once the delay set using DelayDenyAddAndCustomizePagesEnforcement ends in May 2024.
Customers will retain the ability to permit the execution of custom scripts on specific SharePoint sites using the Set-SPOSite <SiteURL> -DenyAddAndCustomizePages PowerShell command or from the Active sites page in the SharePoint Admin Center.

Any modifications made to a site will be automatically reverted to False status within 24 hours, unless the new PowerShell command “DelayDenyAddAndCustomizePagesEnforcement” is used prior to May 2024. After May, the 24 hour reversion will occur regardless of this setting.
[When this will happen:]
The Custom Script setting from SharePoint admin center will be removed in March 2024.
2024-02-17MC TitleRemove Custom Script setting in OneDrive and SharePoint web(Updated) Remove Custom Script setting in OneDrive and SharePoint web
2024-02-17MC How AffectWhen this Custom Script setting is removed, you will no longer be able to add, modify or remove scripts within OneDrive and SharePoint sites unless administrators temporarily allow that by turning the setting on specific site collections using PowerShell. This will not impact the ability to execute existing scripts in OneDrive and SharePoint sites.When this Custom Script setting is removed, you will no longer be able to add, modify or remove scripts within OneDrive and SharePoint sites unless administrators temporarily allow that by turning the setting on specific sites. This will not impact the ability to execute existing scripts in OneDrive and SharePoint sites.

*starting April 2022

Last updated 4 weeks ago

Share to MS Teams

Login to your account

Welcome Back, We Missed You!