Set-ExecutionPolicy Restricted
Set-ExecutionPolicy AllSigned
Set-ExecutionPolicy Unrestricted
Set-ExecutionPolicy RemoteSigned
When any of the above command is run, following registry value changes:
HKLM\Software\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell
Restricted
AllSigned
RemoteSigned
Unrestricted
RemoteSigned
Unrestricted