- May 29, 2003
- 18,526
- 5
- 0
I'm looking for the cleanest and easiest way to append to the Path variable under System Variables under Environment Variables in Windows OS's.
I've Google'd around for ways to do this with Powershell, command prompt commands and editing the registry.
While editing the registry directly with my own interactions is an option, I'm trying to figure out how to script this so I can apply it on a large scale.
The registry path is HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\Path
Has anyone done this before successfully and know a scrip/command/method for accomplishing this?
The key thing is I'm trying to APPEND to the existing system path, not overwrite what's already there.
Thanks.
I've Google'd around for ways to do this with Powershell, command prompt commands and editing the registry.
While editing the registry directly with my own interactions is an option, I'm trying to figure out how to script this so I can apply it on a large scale.
The registry path is HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\Path
Has anyone done this before successfully and know a scrip/command/method for accomplishing this?
The key thing is I'm trying to APPEND to the existing system path, not overwrite what's already there.
Thanks.
