Problem to change the Windows policy of execution in PowerShell


This Content is from Stack Overflow. Question asked by Fryson

I try to run the command ng in a PowerShell, but systems require that the script must be signed.

I try to change my policy of execution.

This is my current configuration Get-ExecutionPolicy -List:

          Scope ExecutionPolicy
        ----- ---------------
MachinePolicy       AllSigned
   UserPolicy       Undefined
      Process       Undefined
  CurrentUser    RemoteSigned
 LocalMachine    Unrestricted

Then, I run the next command Set-ExecutionPolicy -Scope CurrentUser Unrestricted

The change on the policy it’s OK, but appear an error telling another policy defined in a most especific ambit deny the value.

And the command ng still not running with the error, AppDataRoamingnpmng.ps1 it’s not signed digitally.

Can you help me?
Ty everyone


This question is not yet answered, be the first one who answer using the comment. Later the confirmed answer will be published as the solution.

This Question and Answer are collected from stackoverflow and tested by JTuto community, is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.

people found this article helpful. What about you?