how to fix this error
i deleted all environment variables and systems variables what i do now how to fix this
how to fix this error
i deleted all environment variables and systems variables what i do now how to fix this
Open a commandprompt as administrator
Type in the following:
set path=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;%USERPROFILE%\AppData\Local\Microsoft\WindowsApps
set windir=C:\Windows
set SystemDrive=C:
set SystemRoot=C:\WINDOWS
set ProgramData=C:\ProgramData
set ProgramFiles=C:\Program Files
set ProgramFiles(x86)=C:\Program Files (x86)
set ProgramW6432=C:\Program Files
setx PATH "%PATH%"
setx windir "%windir%"
setx SystemDrive "%SystemDrive%"
setx SystemRoot "%SystemRoot%"
setx ProgramData "%ProgramData%"
setx ProgramFiles "%ProgramFiles"
setx ProgramFiles(x86) "%ProgramFiles(x86)%"
setx ProgramW6432 "%ProgramW6432%"
If System Restore is enabled, rollback to a time before this was done.
You get to System Restore via Start > Create a restore point and clicking the "System Restore" button. If you see any checkpoints, verify their date.
If your PATH is not working, here's the full path of the program :
C:\Windows\System32\SystemPropertiesProtection.exe.
windir environment variable. So use the full path as at the end of my answer in CMD or via the key combination Win+R.
– harrymc
Jan 08 '24 at 13:14
If you still can than try to create a new profile and using it or import data from it.
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment. Of course, you should be able to manually navigate to the directory that containsSystemPropertiesAdvanced.exe– Ramhound Jan 08 '24 at 15:28