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

Share:
10,774
user1009073
Author by

user1009073

Updated on July 27, 2022

Comments

  • user1009073
    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
    Madness over 8 years
    Welcome to SO! Try to provide more explanation to your answers. See How to answer page for help in improving your answer.
  • stoneyang
    stoneyang over 7 years
    This 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
    Ungeheuer over 7 years
    i dont have a controlset002
  • Ungeheuer
    Ungeheuer over 7 years
    doesnt help restore the custom path variable before deletion
  • Ungeheuer
    Ungeheuer over 7 years
    I 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?