Search notes:

Registry: HKEY_CURRENT_USER\Software\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell

ExecutionPolicy

The value of ExecutionPolicy determines the PowerShell execution policy for the current user.
In the shell, it might be changed with set-executionPolicy ….
If the execution policy is set too strict, then a script cannot be executed: the shell responds with script cannot be loaded because running scripts is disabled on this system.
The following batch file allows to change the execution policy from cmd.exe:
@reg add HKCU\Software\Microsoft\Powershell\1\ShellIds\Microsoft.PowerShell /v ExecutionPolicy /t REG_SZ /d RemoteSigned /f 1>nul
Github repository about-Windows-Registry, path: /HKEY_CURRENT_USER/Software/Microsoft/PowerShell/1/ShellIds/Microsoft.PowerShell/ExecutionPolicy.bat

See also

The PowerShell cmdLet set-executionPolicy.

Index