Search

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

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 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.
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.

Change Category:
XXXXXXX ...

Scope:
XXXXXXX ...

Release Phase:

Created:
2024-02-09

updated:
2024-02-26

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-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 2 days ago

Share to MS Teams

Login to your account

Welcome Back, We Missed You!