When you run a PowerShell script you might get the message saying “xxxx.ps1 is not digitally signed. The script will not execute on the system.”
To fix this issue we have to bypass the PowerShell's execution policy. The following command will do that.
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
Execution policy Bypass
This means Nothing is blocked and there are no warnings or prompts.
Scope Process
This means only affects the current PowerShell session. The execution policy is saved in the environment variable $env:PSExecutionPolicyPreference
, rather than the registry. When the PowerShell session is closed, the variable and value are deleted.
Top comments (0)