运行PS脚本,提示:
.ps1 is not digitally signed. The script will not execute on the system.
解决办法:
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
有效。
参考:https://caiomsouza.medium.com/fix-for-powershell-script-not-digitally-signed-69f0ed518715