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

后端 未结 9 742
执笔经年
执笔经年 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:35

    If you are using visual studio code:

    1. Open terminal
    2. Run the command: Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted
    3. Then run the command protractor conf.js

    This is related to protractor test script execution related and I faced the same issue and it was resolved like this.

    0 讨论(0)
  • 2020-12-12 12:36

    open windows powershell in administrator mode and run the following command and its work VOILA!!

    Set-ExecutionPolicy RemoteSigned

    0 讨论(0)
  • 2020-12-12 12:36

    I think you can use the powershell in administrative mode or command prompt.

    0 讨论(0)
提交回复
热议问题