Skip to content

Instantly share code, notes, and snippets.

@oledid
Last active September 24, 2015 07:16
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 oledid/2b3d003a520d2b481c4a to your computer and use it in GitHub Desktop.
Save oledid/2b3d003a520d2b481c4a to your computer and use it in GitHub Desktop.
PowerShell: Refresh process PATH from machine and user PATHs
# place this script in a place which will always be in the PATH
$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment