PowerShell: Environment Variable
Session Environment Variable
Change to environment variable in current session is temporary. Once you exit shell, the changes are gone.
Environment Variable in Registry
- Change to environment variable in the registry is persistent.
- When PowerShell starts, it reads the Registry and export them into current session of PowerShell.