PowerShell and environment variables
PowerShell understands 3 levels of environment variables:
- Machine (or System) scope
- User scope
- Process scope
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>
- Previous: VS Code extension: Oracle GUID Converter
- Next: PowerShell variables