If you are trying to install ShortPoint on your SharePoint site, and you came across an error message saying that you have to enable scripting capabilities to finish the installation, then this article is for you.
Scripting capabilities are not enabled with modern sites (and other sites) by default, and cannot be enabled using the admin portal for modern sites. You cannot install ShortPoint Add-In on modern sites if scripting capabilities are not enabled. The only way to enable scripting capabilities on modern sites is through SharePoint Online Management Shell or PowerShell.
TABLE OF CONTENTS
- Before we begin
- Prerequisites
- How to enable scripting capabilities with PowerShell
- Disabling scripting capabilities on your site
Before we begin
- Make sure that you are a ShortPoint user with an active license.
- This article is for you if you have Office 365 SharePoint environment.
- Make sure you already have an experience with PowerShell.
- This article is for you if you are seeing the message The installation has failed, please try again or Oops, the installation has failed! Scripting capabilities are not enabled on this site.
- This article is for you if you do not want to wait for 24 hours for the scripting to be enabled on your site.
- This article is for you if you are enabling scripting capabilities on modern sites, group sites or on a specific site only (Only required if you want to use ShortPoint on classic pages).
Prerequisites
- You need to have access to your SharePoint Admin Portal with URL: https://your-domain-admin.shareppoint.com.
- You already have downloaded and installed SharePoint Online Management Shell.
- As a requirement, you may also need to download and install Windows Management Framework 5.0 if you encounter the message that says: This application requires the following to be installed: PowerShell 3.0.
How to enable scripting capabilities with PowerShell
Please follow this step-by-step tutorial to enable scripting capabilities on your Office 365 SharePoint site.
Step 1: Open SharePoint Online Management Shell
From your computer, open SharePoint Online Management Shell.
Note: If you do not have the SharePoint Online Management Shell application on your computer, kindly go back to the prerequisite guidelines to learn how to download and install it.
Step 2: Connect and sign in to your SharePoint Admin Portal
2.1 Connect to your SharePoint Admin Portal
On the SharePoint Online Manage Shell, type the following command to open connection:
Connect-SPOService
Then, hit the Enter key.
2.2 Enter your SharePoint Admin Portal URL
Enter the URL for your SharePoint Admin Portal, which looks like: https:// your-domain -admin.sharepoint.com, where your-domain should be replaced with the name of your site domain.
Then, hit the Enter key.
2.3 Sign in to your SharePoint account
If you are successful in connecting to your site, it will ask you for a username and password for the user who has permission to manage SharePoint from SharePoint Admin Center.
Step 3: Enable scripting capabilities on your site
Type the following command that will enable scripting capabilities on your modern site and any other site:
Set-SPOsite https:// your-domain .sharepoint.com/sites/modern-site -DenyAddAndCustomizePages 0
where:
- your-domain should be replaced with the name of your site domain.
- sites/modern-site should be replaced with the path of your modern site.
Then, hit the Enter key.
That's it! Once you have successfully followed the steps here, you will now be able to install ShortPoint on Modern Sites or any other site.
Disabling scripting capabilities on your site
In the event that you want to disable scripting capabilities on your site, you may repeat the steps in this article. However, for Step 3, replace the command with:
Set-SPOsite https://your-domain.sharepoint.com/sites/modern-site -DenyAddAndCustomizePages 1
where:
- your-domain should be replaced with the name of your site domain.
- sites/modern-site should be replaced with the path of your modern site.
Related articles:
- What Is "Scripting Capabilities" and Why Is It Required for Using ShortPoint on Classic Pages?
- ShortPoint Add-in: The installation has failed, please try again
- Oops, the installation has failed! Scripting capabilities are not enabled on this site
- How to Check License Expiration Date
- ShortPoint Add-in and SPFx Trial license