22
2
Is there anyway to change the PATH environment variable (or variables in general) on Windows 7 Exterprise (64 bit) and have it take effect in PowerShell or the command prompt (cmd.exe
) without requiring a restart?
I don't mind having the reopen the shell/prompt, but having to restart is too much.
I'm currently changing variables through Advanced Systems settings ->
Environment Variables`.
MS outline the issue with anything relying on services running under the local system account, but that should only affect PSExec sessions. Also, many client programs using environment variables may not require reboot or user logout/login, so long as they are restarted after the EV change. (verified with VS2017)
– Laurie Stearn – 2018-01-11T05:02:32.923