We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e411f0 commit bd446ebCopy full SHA for bd446eb
EnableCustomScripts.ps1
@@ -0,0 +1,8 @@
1
+Import-Module PnP.PowerShell
2
+
3
+# Authentication
4
+Connect-PnPOnline -Url "https://YOURTENANT.sharepoint.com" -ClientId <CLIENTID> -ClientSecret <CLIENTSECRET> -WarningAction Ignore
5
6
+# Enable custom scripts on sites
7
+Set-PnPSite -Url "https://YOURTENANT.sharepoint.com/" -DenyAddAndCustomizePages $false
8
+Set-PnPSite -Url "https://YOURTENANT.sharepoint.com/sites/MYSITE" -DenyAddAndCustomizePages $false
0 commit comments