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
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