首页 > 系统相关 >Fix for PowerShell Script Not Digitally Signed

Fix for PowerShell Script Not Digitally Signed

时间:2023-01-16 18:24:06浏览次数:44  
标签:run digitally script Fix will ExecutionPolicy Digitally PowerShell

When you run a .ps1 PowerShell script you might get the message saying “.ps1 is not digitally signed. The script will not execute on the system.”

To fix it you have to run the command below to run Set-ExecutionPolicy and change the Execution Policy setting.

#source: https://caiomsouza.medium.com/fix-for-powershell-script-not-digitally-signed-69f0ed518715
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass

This command sets the execution policy to bypass for only the current PowerShell session after the window is closed, the next PowerShell session will open running with the default execution policy. “Bypass” means nothing is blocked and no warnings, prompts, or messages will be displayed.

标签:run,digitally,script,Fix,will,ExecutionPolicy,Digitally,PowerShell
From: https://www.cnblogs.com/chenjo/p/17056073.html

相关文章