`="![icon|100]("+this.program-icon+")"` # Windows PowerShell ### Execution Policy [Official Details](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_execution_policies?view=powershell-7.3) #### How to **Set** Execution Policy Get current effective ``` Get-ExecutionPolicy ``` Get all that affect current session ``` Get-ExecutionPolicy -List ``` Get for a specific scope (see below for scope options) ``` Get-ExecutionPolicy -Scope <scope> ``` #### How to **Change** Execution Policy ``` Set-ExecutionPolicy -ExecutionPolicy <PolicyName> ``` (or) ``` Set-ExecutionPolicy -ExecutionPolicy <PolicyName> -Scope <scope> ``` Where `<PolicyName>` can be: - `AllSigned` - `Bypass` - `Default` - `RemoteSigned` - `Restricted` - `Undefined` - `Unrestricted` Where `<scope>` can be: - `MachinePolicy` - `UserPolicy` - `Process` - `CurrentUser` - `LocalMachine`