How to change environment variables on Windows 10

  1. Open the Start Search, type in “env”, and choose “Edit the system environment variables”
  2. Click the “Environment Variables…” button.
  3. Set the environment variables as needed.
    • The New button adds an additional variable
    • The Edit button modifies the selected variable
    • The Delete button deletes the selected variable
  4. Dismiss all of the dialogs by choosing “OK”. Your changes are saved!

Applying the change

Due to how Windows applies environment variables, you most likely need to restart apps for them to pick up the change, including explorer.exe. Restarting the machine is recommended (but not required) and ensures all apps are run with the PATH change.

To test it, in new PowerShell window, type: