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

前端 未结 30 2358
傲寒
傲寒 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:22

    In Windows 7:

    Go to Start Menu and search for "Windows PowerShell ISE".

    Right click the x86 version and choose "Run as administrator".

    In the top part, paste Set-ExecutionPolicy RemoteSigned; run the script. Choose "Yes".

    Repeat these steps for the 64-bit version of Powershell ISE too (the non x86 version).

    I'm just clarifying the steps that @Chad Miller hinted at. Thanks Chad!

提交回复
热议问题