How to enable Scripting Capabilities with PowerShell on SharePoint 2019 On-Premise Site
- Login to your SharePoint Farm SharePoint 2019 On-Premise
- Open SharePoint 2019 Management Shell as administrator
- Execute the following PowerShell command:
(Get-SPSite -Identity "https://your-host/sites/modern-site").DenyPermissionsMask = [Microsoft.SharePoint.SPBasePermissions]::EmptyMask - That's it.
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:
Upload ShortPoint to App Catalog
This article is for
- You are running ShortPoint SPFx package on SharePoint 2019 On-Premise
- You faced this issue while running ShortPoint Installation
- Enable Scripting Capabilities on modern sites (only required if you want to use ShortPoint on classic pages)
- Enable Scripting Capabilities on group sites (only required if you want to use ShortPoint on classic pages)
- 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 SharePoint 2019 On-Premise
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. You can now install ShortPoint for classic pages on Modern Sites or any other site