Search notes:

PowerShell cmdLet Set-ExecutionPolicy

set-executionPolicy remoteSigned -scope currentUser
The value of the execution policy for the current user is stored in the registry in the value ExecutionPolicy under the registry key HKEY_CURRENT_USER\Software\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell

TODO

PS: C:\> set-executionPolicy bypass -scope process
resulted in the error message
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 please see "Get-Help Set-ExecutionPolicy.

See also

Powershell command noun: executionPolicy

Index