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

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

    I get another warning when I tryit to run Set-ExecutionPolicy RemoteSigned

    I solved with this commands

    Set-ExecutionPolicy "RemoteSigned" -Scope Process -Confirm:$false
    
    Set-ExecutionPolicy "RemoteSigned" -Scope CurrentUser -Confirm:$false
    

提交回复
热议问题