Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

13
  • 96
    +1 If you have Chocolatey installed, you can just run RefreshEnv to get updated environment variables into your current session. Commented Sep 11, 2016 at 10:45
  • 2
    This is an incredibly useful piece of utility software, thanks so much for sharing. Commented Jan 6, 2017 at 9:21
  • 16
    Note: Chocolatey has moved repos and the latest version of this script can be found here (with some bug fixes): github.com/chocolatey/choco/blob/master/src/… Commented Nov 11, 2017 at 2:03
  • 2
    should this work from Powershell too? It only seems to work from cmd.exe for me. Commented Jan 29, 2019 at 1:44
  • 3
    this doesn't appear to work for me at all, in cmd/gitbash/PowerShell Commented Apr 25, 2019 at 16:58