2

I noticed that commands weren't working in my command prompt. I tried rebooting but still the same problem. Eventually after looking in this forum, I found out that my PATH variable was effectively deleted and the only entry is one directory of the program I was installing. I uninstalled it, but now the PATH variable is empty. How do I restore the path to an old version from say yesterday?

I tried the methods in How to restore the Path environment variable I deleted? but I have no entry ControlSet002 in Computer\HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\Environment

dacfer
  • 155
  • 1
    “How do I restore the path to an old version from say yesterday?” - Does a Restore Point exist? – Ramhound Nov 09 '23 at 12:24
  • 1
  • @harrymc no unfortunately not. I did try that before posting, but Microsoft has removed "Restore Previous Versions" and Shadow Explorer just hangs in Win 11. – dacfer Nov 09 '23 at 16:39
  • @Ramhound, apparently not, I only get an option to Create one. – dacfer Nov 09 '23 at 16:46
  • If you have another user account on the computer, you can get the PATH from there. – harrymc Nov 09 '23 at 17:16
  • It looks like the deafult path for W11 is C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\dotnet\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;%SYSTEMROOT%\System32\OpenSSH\ - or at least that is what I got from copy-and-pasting from a W11 VM I use to evaluate W11. (Remove the single space at the end.) – Andrew Morton Nov 09 '23 at 17:51
  • @harrymc I don't, but I managed to find some of these path entries from my laptop which pointed to most of the items in Andrew's reply above – dacfer Nov 09 '23 at 18:04
  • @AndrewMorton yes I picked up most of those from looking at my laptop and selectively copying them across. Would be great if Microsoft could have helped! – dacfer Nov 09 '23 at 18:06

0 Answers0