PowerShell says “execution of scripts is disabled on this system.”

前端 未结 30 3028
傲寒
傲寒 2020-11-22 00:45

I am trying to run a cmd file that calls a PowerShell script from cmd.exe, but I am getting this error:

Management_Instal

30条回答
  •  情书的邮戳
    2020-11-22 01:15

    RemoteSigned: all scripts you created yourself will be run, and all scripts downloaded from the Internet will need to be signed by a trusted publisher.

    OK, change the policy by simply typing:

    Set-ExecutionPolicy RemoteSigned
    

提交回复
热议问题