Skip to content

Instantly share code, notes, and snippets.

@jcefoli
Created March 1, 2017 15:09
Show Gist options
  • Save jcefoli/8af7aafe9d409b3d5004e3bf7374a9a3 to your computer and use it in GitHub Desktop.
Save jcefoli/8af7aafe9d409b3d5004e3bf7374a9a3 to your computer and use it in GitHub Desktop.
Permanently Add Directory to User Path ($env:path)
#In this example, we're adding C:\bin. I hard coded the path to make it a powershell one liner
[Environment]::SetEnvironmentVariable("Path", $env:Path + ";C:\bin", [EnvironmentVariableTarget]::User)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment