Pages

Showing posts with label powershell execution policy commands. Show all posts
Showing posts with label powershell execution policy commands. Show all posts

Sunday 22 July 2012

PowerShell Execution Policy Commands



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