Tuesday, February 21, 2023

How to enable custom script in SharePoint Online using PowerShell

#Declare Variables
$MySiteurl = "https://Mohan.sharepoint.com/sites/Sales"

#Connect to Online
Connect-PnPOnline -Url $MySiteurl -Interactive

#sharepoint online allow custom scripts powershell
Set-PnPSite -Identity $MySiteurl -NoScriptSite $false

No comments:

Post a Comment