ps1 cannot be loaded because running scripts is disabled on this system

后端 未结 9 829
执笔经年
执笔经年 2020-12-12 11:55

I try to run powershell script from c#.

First i set the ExecutionPolicy to Unrestricted and the script is running now from

9条回答
  •  南笙
    南笙 (楼主)
    2020-12-12 12:17

    The following three steps are used to fix Running Scripts is disabled on this System error

    Step1 : To fix this kind of problem, we have to start power shell in administrator mode.

    Step2 : Type the following command set-ExecutionPolicy RemoteSigned Step3: Press Y for your Confirmation.

    Visit the following for more information https://youtu.be/J_596H-sWsk

提交回复
热议问题