Skip to main content
Code and think

PowerShell and environment variables

PowerShell understands 3 levels of environment variables:

Machine and User scopes are clear. These are the settings like Path. Process scope is useful for example when working on PowerShell script that is using an environment variable. You can set a variable on the process and test the script in the same process by:

$Env:<variable-name>

Reference