Environment variables -- view/edit them on windows

February 6, 2022 ยท View on GitHub

Find environment variables in System Properties

  • Click "Advanced System settings" (you'll need to enter Admin password or elevate) and you'll get to "System Properties"
    • Advanced tab: click "Environment Variables..." - There you have "user variables for current user" and "System variables" - Note that those in the "user variables" section also exist in the System variables -- so think carefully about which one you mean.

Set a Persistent Environment variable from Powershell

[System.Environment]::SetEnvironmentVariable('NAME_OF_VARIABLE', 'value goes here', [System.EnvironmentVariableTarget]::User)

Environment Variables Dialog

See also