PowerShell is frequently used with SharePoint to perform the development and administrative tasks. Recently, I was trying to setup Responsive UI for SharePoint 2016. You can read the complete article from here. However, while trying to activate the Responsive UI, I received the below error – “PowerShell Script is not digitally signed”.
Resolution
The resolution for this issue is to change the execution policy settings, by running the command.
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
This will bypass the execution policy for the current PowerShell session. However, when we close and open the session, it will open up with the default execution policy. Once the above command is run, remaining PowerShell scripts ran without any issues.
You can read more about the parameters available for the ‘Set-ExecutionPolicy’ command from the TechNet page
Summary- Thus, we saw how to resolve the “PowerShell script is not digitally signed” issue when running PowerShell Commands.