Last active
October 22, 2018 23:06
-
-
Save zaqmor/d995e8bea44c1a9e42407fa6efcd2e87 to your computer and use it in GitHub Desktop.
Powershell: Get and edit environment variables
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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