Variables | Windows Reload Env
If you have Chocolatey installed, run refreshenv . If you are a PowerShell user without Chocolatey, run this one-liner to force the current session to sync with the registry:
The standard Command Prompt does not have a native "refresh" command for variables. You must either use third-party tools or pull the registry values manually. Use the Chocolatey 'RefreshEnv' Utility windows reload env variables
In Windows, environment variables are loaded by processes at startup. When you change a global variable (e.g., via System Properties), already-running programs—including open Command Prompt (CMD) or PowerShell windows—will automatically see the change. If you have Chocolatey installed, run refreshenv