How can I change the policy that will allow me to run the PowerShell script on my machine? PowerShell screen
I have tried checking the solution described there:
How do you successfully change execution policy and enable execution of PowerShell scripts
I changed the settings in MMC (Computer Configuration -> Administrative Templates -> Windows Components) and regedit (HKEY_LOCAL_MACHINE -> SOFTWARE -> Policies -> Microsoft -> Windows -> Powershell)
but all the time I am getting that error on the attached screen
Set-ExecutionPolicy : Windows PowerShell updated your execution policy successfully, but the setting is overridden by a policy defined at a more specific scope. Due to the override, your shell will retain its current effective execution policy of RemoteSigned. Type "Get-ExecutionPolicy -List" to view your execution policy settings. For more information p p lease see "Get-Help Set-ExecutionPolicy". At line:1 char:46
- ... -ne 'AllSigned') { Set-ExecutionPolicy -Scope Process Bypass }; & 'C ...
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : PermissionDenied: (:) [Set-ExecutionPolicy], SecurityException
- FullyQualifiedErrorId : ExecutionPolicyOverride,Microsoft.PowerShell.Commands.SetExecutionPolicyCommand
How do you successfully change execution policy and enable execution of PowerShell scripts
HKEY_LOCAL_MACHINE -> SOFTWARE -> Policies -> Microsoft -> Windows -> Powershell changed to "ByPass"
Computer Configuration -> Administrative Templates -> Windows Components Turn Script execution: enabled Execution policy: allow all scripts