---
title: "Enable custom scripts in SharePoint Online"
canonical_url: "https://www.nutrient.io/guides/document-converter/sharepoint/knowledge-base/enable-custom-scripts-in-sharepoint-online/"
md_url: "https://www.nutrient.io/guides/document-converter/sharepoint/knowledge-base/enable-custom-scripts-in-sharepoint-online.md"
last_updated: "2026-06-09T10:22:07.583Z"
description: "Learn to enable custom scripts in SharePoint Online for a smoother transition to the Modern Experience with step-by-step instructions."
---

# How to enable custom scripts in SharePoint Online

SharePoint Online is transitioning from a 'Classic Experience', which looks very much like legacy versions of SharePoint, to a 'Modern Experience' that looks more attractive and behaves in a way that people expect from modern websites.

As part of this transition Microsoft is making many changes to the way SharePoint works. One of these changes is that custom scripts are disabled by default in the Modern Experience. Disabling custom scripts has some undesirable side effects including disabling of the Solution Gallery, which is used to [deploy our SharePoint Designer workflow actions](/guides/document-converter/sharepoint/knowledge-base/installing-the-pdf-converter-for-sharepoint-online-workflow-actions.md).

When Custom Scripts are disabled, please follow the instructions below to enable them again:

1. [Download](https://www.microsoft.com/en-us/download/details.aspx?id=35588)&nbsp;and install the SharePoint Online Management Shell.

2. Launch the newly installed&nbsp;SharePoint Online Management Shell.

3. Connect to SharePoint Online as a global admin of SharePoint admin using the following command:

   ```

   Connect-SPOService -Url https://[yourtenant]-admin.sharepoint.com
   ```

4. Enable custom scripts using the following command:

   ```

   Set-SPOSite -Identity https://[yourtenant].sharepoint.com/[siteurl] -DenyAddAndCustomizePages 0
   ```

That is it.

For more details about Custom Scripts, see [this article on the Microsoft website](https://docs.microsoft.com/en-gb/sharepoint/allow-or-prevent-custom-script?redirectSourcePath=%252fen-us%252farticle%252fallow-or-prevent-custom-script-1f2c515f-5d7e-448a-9fd7-835da935584f).

---

## Related pages

- [How to resolve the issue of Blink binaries (Portable Chromium) no longer being included?](/guides/document-converter/sharepoint/knowledge-base/alternative-options-to-portable-chromium.md)
- [Understanding file check-in and checkout in SharePoint](/guides/document-converter/sharepoint/knowledge-base/are-files-checked-in-out-after-conversion.md)
- [Understanding automatic check-in for SharePoint Online](/guides/document-converter/sharepoint/knowledge-base/automatic-check-in-behaviour-in-sharepoint-online.md)
- [Streamline document conversion in SharePoint](/guides/document-converter/sharepoint/knowledge-base/automatic-document-conversion-workflow-getting-started.md)
- [How to avoid Microsoft Office as a dependency?](/guides/document-converter/sharepoint/knowledge-base/avoiding-microsoft-office-as-dependency.md)
- [Configuring Chromium-based HTML-to-Document converter](/guides/document-converter/sharepoint/knowledge-base/configuring-chromium-based-html-to-pdf-converter.md)
- [Effortless document workflows with SharePoint Designer](/guides/document-converter/sharepoint/knowledge-base/creating-workflows-using-sharepoint-designer-the-muhimbi-pdf-converter.md)
- [Converting InfoPath/Nintex form-based list items using Nutrient Document Converter](/guides/document-converter/sharepoint/knowledge-base/converting-infopath-nintex-forms-based-list-items-using-the-muhimbi-pdf-converter.md)
- [Effortlessly convert SharePoint list items to PDF](/guides/document-converter/sharepoint/knowledge-base/convert-a-list-item-including-all-attachments-to-pdf.md)
- [What do I get if I subscribe to Document Converter Online?](/guides/document-converter/sharepoint/knowledge-base/difference-between-sharepoint-app-and-power-automate-features.md)
- [Elevate App Privileges to Access Advanced Features (Old Version)](/guides/document-converter/sharepoint/knowledge-base/elevate-app-privileges-old-version.md)
- [Deploying real-time watermarking in SharePoint](/guides/document-converter/sharepoint/knowledge-base/enabling-real-time-watermarking-on-modern-view-libraries.md)
- [How to harden and secure the server running the Conversion Service?](/guides/document-converter/sharepoint/knowledge-base/hardening-securing-the-server-that-runs-the-conversion-service.md)
- [How to specify which InfoPath view(s) to convert?](/guides/document-converter/sharepoint/knowledge-base/how-can-i-specify-which-infopath-view-s-to-convert.md)
- [How can I request a trial license?](/guides/document-converter/sharepoint/knowledge-base/how-can-i-request-a-trial-license.md)
- [Optimize Nintex workflows with document conversion](/guides/document-converter/sharepoint/knowledge-base/how-can-i-use-the-pdf-converter-in-combination-with-nintex-workflow.md)
- [How does Document Converter handle InfoPath XSN files?](/guides/document-converter/sharepoint/knowledge-base/how-does-the-pdf-converter-deal-with-infopath-xsn-files.md)
- [Secure document processing for SharePoint Online](/guides/document-converter/sharepoint/knowledge-base/how-does-the-pdf-converter-for-sharepoint-online-deal-with-private-documents.md)
- [Find your SharePoint Online Tenancy ID in minutes](/guides/document-converter/sharepoint/knowledge-base/how-to-determine-your-sharepoint-online-tenancy-id.md)
- [How to edit the Conversion Service configuration file?](/guides/document-converter/sharepoint/knowledge-base/how-to-edit-the-conversion-service-s-configuration-file.md)
- [Unlock advanced features in SharePoint Document Converter](/guides/document-converter/sharepoint/knowledge-base/how-to-elevate-app-privileges-to-access-advanced-features.md)
- [How well does Document Converter scale and handle high load?](/guides/document-converter/sharepoint/knowledge-base/how-well-does-the-pdf-converter-scale-deal-with-high-load.md)
- [How to resolve the issue of iFrame, Embed, and Object entities being automatically removed?](/guides/document-converter/sharepoint/knowledge-base/iframe-embed-object-entities-are-removed.md)
- [How can I use the GdPicture Conversion Engine globally?](/guides/document-converter/sharepoint/knowledge-base/how-to-use-gdpicture-conversion-engine-globally.md)
- [Knowledge Base: SharePoint Document Converter](/guides/document-converter/sharepoint/knowledge-base.md)
- [How to install and configure Ghostscript for PDF post-processing](/guides/document-converter/sharepoint/knowledge-base/installing-and-configuring-ghostscript-for-pdf-post-processing.md)
- [Install Document Converter for SharePoint](/guides/document-converter/sharepoint/knowledge-base/installing-the-pdf-converter-for-sharepoint-online-app.md)
- [Deploying Muhimbi Document Converter in SharePoint 2013](/guides/document-converter/sharepoint/knowledge-base/installing-wsp-in-sharepoint-2013-running-2010-legacy-mode.md)
- [Set up document converter for SharePoint workflows](/guides/document-converter/sharepoint/knowledge-base/installing-the-pdf-converter-for-sharepoint-online-workflow-actions.md)
- [Office 2019 Compatibility with Muhimbi Document Converter](/guides/document-converter/sharepoint/knowledge-base/office-2019-compatibility-with-pdf-converter.md)
- [Optimize PDFs with advanced OCR features](/guides/document-converter/sharepoint/knowledge-base/ocr-facilities-provided-by-the-pdf-converter.md)
- [FAQs on SharePoint Online Document Converter](/guides/document-converter/sharepoint/knowledge-base/pdf-converter-for-sharepoint-online-faq.md)
- [Optimize PDFs: Fast Web Views and font management](/guides/document-converter/sharepoint/knowledge-base/set-pdf-version-enable-fast-web-views-embed-strip-fonts-using-web-services.md)
- [Document Converter in SharePoint Subscription Edition and the stsadm command](/guides/document-converter/sharepoint/knowledge-base/pdf-converter-in-sharepoint-subscription-edition-and-the-stsadm-command.md)
- [How to set GdPicture OCR as the default OCR engine?](/guides/document-converter/sharepoint/knowledge-base/set-up-gdpictureocr-as-default-ocr-engine.md)
- [Optimize PDF viewer preferences effectively](/guides/document-converter/sharepoint/knowledge-base/setting-pdf-viewer-preferences-using-the-web-service.md)
- [Effortlessly deploy SharePoint Online apps and extensions](/guides/document-converter/sharepoint/knowledge-base/programmatically-deploy-the-sharepoint-online-app-spfx-extension-and-workflow-actions-to-multiple-site-collections.md)
- [or](/guides/document-converter/sharepoint/knowledge-base/print-quality-configuration.md)
- [Upgrade to Muhimbi Document Converter for SharePoint](/guides/document-converter/sharepoint/knowledge-base/upgrading-to-pdf-converter-for-sharepoint-online-spfx.md)
- [Convert SharePoint Online pages to PDF easily](/guides/document-converter/sharepoint/knowledge-base/sharepoint-online-html-conversion-user-credentials.md)
- [Optimize SharePoint with K2 Workflow Document Converter](/guides/document-converter/sharepoint/knowledge-base/using-pdf-converter-in-combination-with-k2-workflows.md)
- [Using the Document Converter from PowerShell](/guides/document-converter/sharepoint/knowledge-base/using-the-pdf-converter-from-powershell.md)
- [Streamline PDF conversions in SharePoint Online](/guides/document-converter/sharepoint/knowledge-base/using-the-pdf-converter-for-sharepoint-online-user-interface.md)
- [Convert documents with SharePoint PDF converter](/guides/document-converter/sharepoint/knowledge-base/what-locations-can-i-convert-documents-to.md)
- [Watermark and secure OnOpen in SharePoint Online FAQ](/guides/document-converter/sharepoint/knowledge-base/watermark-secure-onopen-in-sharepoint-online-faq.md)
- [What features have been added to Document Converter over the years?](/guides/document-converter/sharepoint/knowledge-base/what-features-have-been-added-to-the-pdf-converter-over-the-years.md)
- [Effortless PDF merging with SharePoint tools](/guides/document-converter/sharepoint/knowledge-base/what-pdf-merging-facilities-are-available.md)
- [Where can I download the latest version of the software?](/guides/document-converter/sharepoint/knowledge-base/where-can-i-download-the-latest-version-of-the-software.md)
- [Convert various file formats to PDF easily](/guides/document-converter/sharepoint/knowledge-base/what-file-formats-types-are-supported-for-conversion.md)
- [Where to find details about Document Converter's object model?](/guides/document-converter/sharepoint/knowledge-base/where-can-i-find-details-about-the-pdf-converter-s-object-model.md)

