Issue with custom scripts on Sharepoint site

Copper Contributor

Powershell command error.pngPowershell command error.png

 

Hello, I have enabled custom scripts on my SharePoint site, but am seemingly unable to execute anything. Trying to add a Bing Maps Key, followed the instructions to do so, and it is not letting me on the basis of some sort of prohibition on custom scripts despite having enabled them on the SharePoint site and waited the 24 hours.

 

1 Reply

Hi,

You need to set the execution policy for your PowerShell. You can set it to unrestricted which will let you run Import-Module and then you can install other modules.

To set it:  

 Set-ExecutionPolicy Unrestricted