Need to recover older $PATH setting
10,774
If anyone is interested, I found the answer... using REGEDIT, it is under HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\Environment or HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Control\Session Manager\Environment
In my case, it was under HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002...
GS
Author by
user1009073
Updated on July 27, 2022Comments
-
user1009073 almost 2 years
I have just installed an app which overwrote my $PATH variable... so now, a bunch of stuff will not work. While I have a full backup, I am hoping that there is an easier approach than to restore, get the PATH, the "roll it forward" again.
Is there a location in the windows registry (or anywhere else) that stores an older $PATH setting?
Thanks, GS
-
Madness over 8 yearsWelcome to SO! Try to provide more explanation to your answers. See How to answer page for help in improving your answer.
-
stoneyang over 7 yearsThis answer has just saved me from terrible OS fixing job! And my case is same as the original answer, not sure whether it is a coincidence or some other reasons.
-
Ungeheuer over 7 yearsi dont have a controlset002
-
Ungeheuer over 7 yearsdoesnt help restore the custom path variable before deletion
-
Ungeheuer over 7 yearsI have a path variable under controlset001, but its the wrong one. after i accidentally deleted System Path i made the mistake of copying and setting System Path to User Path. Should I delete the incorrect Path before doing a system restore?