How do you successfully change execution policy and enable execution of PowerShell scripts

前端 未结 7 1520
情话喂你
情话喂你 2020-12-02 12:04

I have a problem regarding changing the Execution Policy in my Windows Server 2008+ OS. It is the first time I try to run a script for which I need resource full ac

7条回答
  •  情深已故
    2020-12-02 12:46

    Even if @Ansgar Wiechers's Answer doesn't work.. Then there can be issue with you MachinePolicy Scope. So there can be one workaround for that issue is.. Edit the Registry Value for the ExecutionPolicy Key at

    HKEY_LOCAL_MACHINE -> SOFTWARE -> Policies -> Microsoft -> Windows -> Powershell

    it worked for me to execute ps script after trying out so many solutions.

提交回复
热议问题