I recently ran into this error message (The system could not find the environment option that was entered) while trying to fix a friendís computer and thought Iíd share my fix. The computer was a slim laptop running Vista Home Premium that I think may have been the victim of some fake anti-malware program. While some things like the control panel would open, any attempts to open things such as system restore or administrative tools would generate the error message. Windows firewall and the anti-virus program were both disabled. It looked like someone had installed and run MalwareBytes Anti-Malware at some point although it would no longer update or scan.
Pressing F8 at startup showed no ďRepairĒ option. Safe-mode would work but wouldnít show any system restore points available. The laptopís hidden partition restore option only offered to wipe everything back to factory new. I thought about booting from a Vista DVD to get the System Repair option but this laptop had no DVD drive and I didnít have a USB drive available. Information on the internet suggested that the error message was the result of missing system environment variables. Opening a command prompt window and entering SET showed only a few variables available. Notably, there was no PATH or WINDIR variable.
To fix this, I started in safe-mode (RegEdit would only work in safe-mode) and inserted PATH and WINDIR under the key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment (setting Windir = C:\Windows and Path = C:\Windows\System32;C:\Windows;C:Windows\System32\Wbem). After that, System Restore began working again on a normal startup and showed several months worth of restore points. Picking an early restore point returned most things to normal while a virus scan and SFC /SCANNOW finished things up. I hope this works for you.
Welcome to MSFN ForumRegister now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account
The system could not find the environment option that was entered
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users