How can we help you today?

Prerequisite 2: Enable Scripting Capabilities with Powershell (SharePoint 2019)

Short walkthrough for advanced users:

  1. Login to your SharePoint 2019 On-Premise farm.
  2. Open SharePoint 2019 Management Shell as administrator.
  3. Execute the following PowerShell command:


(Get-SPSite -Identity "https://your-host/sites/modern-site").DenyPermissionsMask = [Microsoft.SharePoint.SPBasePermissions]::EmptyMask


Note: You can skip this step if you want to use ShortPoint on Modern SharePoint Sites and Pages only.

Want to skip? Proceed to the next step:

Installation Step 1: Upload ShortPoint SPFx to App Catalog (SharePoint 2019)


Detailed tutorial


This article is for you if one or more of the following is true:

  • you are running ShortPoint SPFx package on SharePoint 2019 On-Premise
  • you have faced this issue while running ShortPoint Installation
  • you want to enable scripting capabilities on modern sites (only required if you want to use ShortPoint on classic pages)
  • you want to enable scripting capabilities on group sites (only required if you want to use ShortPoint on classic pages)
  • you want to enable scripting capabilities on specific SharePoint 2019 On-Premise site only
  • if you are more comfortable typing PowerShell commands - nice to meet you :)

Introduction

Enable Scripting Capabilities on modern sites and other sites

Scripting capabilities are not enabled with modern sites (and other sites) by default, and cannot be enabled using the central administrator for modern sites. You can not install ShortPoint SPFx for classic pages on modern sites if scripting capabilities are not enabled. 

  • The only way to enable scripting capabilities on modern sites is using PowerShell. 
  • You need to have access to your SharePoint Farm Server and you need to be Farm Server Administrator


How to enable Scripting Capabilities with PowerShell for 

Step 1: Open SharePoint 2019 Management Shell


Open SharePoint 2019 Management Shell as an administrator



Step 2: Enable Scripting Capabilities on your site

Type the following command that will enable scripting capabilities on your modern site and any other site:


(Get-SPSite -Identity "https://your-host/sites/modern-site").DenyPermissionsMask = [Microsoft.SharePoint.SPBasePermissions]::EmptyMask


Replace with your host name

Replace with the path of your modern site



Hit Enter. 


That's it. Now you have scripting capabilities enabled.


NEXT

Prerequisite 3: Enable IIS 6 Metabase Compatibility (SharePoint 2019)

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.

World's best intranet sites are designed using ShortPoint

Get started today! Learn more
See all 12 topics

Start a trial

Ignite your vision. Install ShortPoint directly on your site, or play in sandbox mode. No credit card required.

Get started today

World’s best intranet sites are designed using ShortPoint

Thousands of companies using ShortPoint everyday to design, brand and build award winning intranet sites.

Get started Learn more