Skip to content

Instantly share code, notes, and snippets.

@zaqmor
Last active October 22, 2018 23:06
Show Gist options
  • Save zaqmor/d995e8bea44c1a9e42407fa6efcd2e87 to your computer and use it in GitHub Desktop.
Save zaqmor/d995e8bea44c1a9e42407fa6efcd2e87 to your computer and use it in GitHub Desktop.
Powershell: Get and edit environment variables
# list ALL
get-childitem Env:
# list one
echo $env:SomeVarName
# edit one
$env:SomeVarName = "value"
# https://www.itprotoday.com/powershell/powershell-one-liner-creating-and-modifying-environment-variable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment