Remove Custom Script setting in OneDrive and SharePoint web

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

How this will affect your organization:

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 site collections using PowerShell. This will not impact the ability to execute existing scripts in OneDrive and SharePoint sites. 

What you need to do to prepare:

This 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

Message ID: MC714186


No comments yet

Leave a Reply


I've been working with Microsoft Technologies over the last ten years, mainly focused on creating collaboration and productivity solutions that drive the adoption of Microsoft Modern Workplace.

%d bloggers like this: