Force PowerShell Execution Policy Setting:

When I try to set the execution policy from the PowerShell comand window it seems to be a hit-or-miss.

Fortunatly modification of the registry value works like a charm everytime.

 

HKLMSoftwareMicrosoftPowerShell2ShellIdsMicrosoft.PowerShell

Locate the string ExecutionPolicy and add the value “Unrestricted