[FIX] System Could not Find Environment Option that was Entered
This is a very irritating issue that arises when the Environment Variables of the Windows system are disturbed. The main reason why this occurs is due to the Third-Party Software that users install on their system. These software applications silently change the Environment Variables on your computer and the result is that most of the other system processes stop working. Users may run into issues like unable to perform operations that require user privileges, most of the executable files turn into shortcuts, and unable to open windows core programs like Task Manager and Command Prompt. The user will keep the following error popping up on the screen:
Method 1: Add a New Environment Variable in Safe Mode
In this method, we read the System variable called “Windir”. Windows has a built-in system variable called “Windir” which points to the Windows directory. But this variable can also be edited or removed by the user or some other program. This variable is required by the batch scripts to run correctly and certain system applications also point to the path stored in the “Windir” variable. So if this variable is broken then all these applications that are dependent upon it also stop working.
- Restart your system and press F4 when you see the start-up logo and then select Safe Mode
- If you do not know which function key Enters the Safe Mode then press the Windows key + R. This will open up the Run Dialog box. Type “msconfig” and press OK.
- Select the Boot tab and under Boot Options, check the Safe Boot option. Now click Apply and then OK and restart the system.
- Once your system restarts in Safe Mode go to your System Properties and click Advanced System Settings
- Click Environment Variables
- Click New under System Variables
- In the Variable Name enter “windir” and in the Variable Value enter “C:\Windows” (The path to the directory where you installed Windows)
- Click OK and close all windows to save the settings
Method 2: Use System Restore to Restore Your Previous Settings
In this method, we try to restore the Windows to earlier settings where all the previous functionality is restored discarding any harmful changes done to your computer. For this purpose, there is a utility in Windows called System Restore. But for this method to work your system should have an already created system Restore point. These Restore Points are either manually created by the user or sometimes it is automatically created when another application tries to make any critical changes to the System.
- Restart your system with Safe Mode Enabled
- Go to your computer Properties and click on Advanced System Settings
- Go to the System Protection tab and click System Restore…
- Chose the Restore Point and Click Next
- Click Yes and wait for the system to Restore
- Once you are restored you will see that the system has returned to its normal state.
Method 3: Add Frequently Missing Variables in Safe Mode
It is possible that more than one Environment Variable is missing from the System. In this method, we try to add the most common Variables that have been reported to be missing by other users as well. There are System Variables which means these are normally set up by Windows but you can also insert them manually into the registry.
- Restart your system with Safe Mode Enabled
- Go to your System Properties and click Advanced System Settings
- Click Environment Variables
- Click New under System Variables
- In the Variable Name enter and Variable Value enter the following:
CommonProgramFiles=C:\Program Files\Common Files CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files CommonProgramW6432=C:\Program Files\Common Files ProgramFiles=C:\Program Files
- Click OK and close all windows to save the settings
- Now Reboot your system normally