DEV Community

Chinthaka Bandara
Chinthaka Bandara

Posted on

PowerShell Script Not Digitally Signed

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.

For more information check this article from Microsoft

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more