Why is my locally-created script not allowed to run under the RemoteSigned execution policy?

后端 未结 13 1204
自闭症患者
自闭症患者 2021-01-30 02:35

Since this question continues to attract responses that are either refuted by the question body or don\'t address the actual problem, please read th

13条回答
  •  星月不相逢
    2021-01-30 03:39

    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.

    Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
    

提交回复
热议问题