Jump to content

Welcome to MSFN Forum
Register 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


Photo

The system could not find the environment option that was entered

- - - - -

  • Please log in to reply
No replies to this topic

#1
dougdeep

dougdeep

    Newbie

  • MSFN Sponsor
  • 15 posts
  • OS:none specified
  • Country: Country Flag
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.
Beats a poke in the eye with a sharp stick.


How to remove advertisement from MSFN



0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users



How to remove advertisement from MSFN