Skip to content

Instantly share code, notes, and snippets.

@jonbrennecke
Last active March 22, 2017 19:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonbrennecke/f4e7fe10245d57a82d4ddf2ffe57a10b to your computer and use it in GitHub Desktop.
Save jonbrennecke/f4e7fe10245d57a82d4ddf2ffe57a10b to your computer and use it in GitHub Desktop.
Environment Vars in Powershell
// Get env (like `env`)
Get-ChildItem Env:
// Set var (like `export name=value`)
[Environment]::SetEnvironmentVariable("Name", "Value")
// Remove var (like `unset name=value`)
[Environment]::SetEnvironmentVariable("Name", "Value")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment