Windows Recovery Environment

Anyone who has called a customer support number recently has most likely heard the recorded message "To help us improve our quality of service this call may be recorded or monitored."  When you call Microsoft Customer Support, one of the reasons that you hear such a message is that we have this really cool system that lets folks in the product group listen to support calls.  This lets us hear first-hand the issues that users are having with our products.  While I love this system, I am often humbled by what I hear.  Of all of the calls that I monitor, the one that I find most frustrating (remember, I am in listen-only mode) is the call where the customer's PC just won’t boot.  While I know I might be able to fix the PC if I had direct access to it, I know how hard it is for the user to follow a complex set of directions from even the most talented support engineer as they try to diagnose and correct the problem together.  I also know that it's even more frustrating for the customer.

I knew we had to tackle this for Windows Vista and I am very proud of the progress we made with a new feature called Windows Recovery Environment or Windows RE.  Windows RE is a combination runtime environment, diagnostic tool and repair system that basically tries to do about 80% of what one of the engineers in the Windows support team could do if they came to your home or office and hooked up a debugger up to your PC -- all without you having to do anything.

In looking at the support data, we know that the top 5 issues that cause Windows XP PCs not to boot are:  1) registry corruptions, 2) corrupt file systems (also known as NTFS metadata corruptions), 3) missing OS loader, 4) inaccessible boot devices (often caused by installing a bad storage driver) and 5) system file corruptions (some part of the OS getting deleted).  These problems could happen because of hardware memory corruptions, disk corruptions, other hardware issues, buggy device drivers, or a kernel software issue.  Regardless of how the system got into that state, the idea was to create an environment that would use heuristics to essentially implement a differential diagnosis to identify the issue and then use the resources in the other parts of the system configuration, combined with back-up data (such as system restore points) and a copy of key system image information to put the system back into an operating state -- without user intervention.

The recovery environment can be loaded in one of two ways:  either automatically, if the computer manufacturer or IT administrator created a separate partition with Windows Recovery Environment installed on it, or manually using either the Windows Vista DVD or the on-disk recovery environment.  When Windows RE is installed on the hard disk, it can be accessed by pressing the F8 key when the system is booting.

Here is how it works in the automatic scenario (with the Windows RE partition).  At startup, the Windows loader sets a flag to show that the boot process has started.  If the boot is successful, we clear the flag right before the Windows logon screen is displayed.  However, if the boot fails, the flag is never cleared so that the next time the computer tries to boot, the Windows loader see that the flag was not cleared and assumes that the boot failed, so the loader launches the Windows Recovery Environment instead of Windows Vista.  If you don't have the automatic mode, you can use the Windows Vista DVD to load the Startup Repair tool.

Once loaded, the Startup Repair starts checking for potential problems to see why the system failed to boot by grinding through the following questions:  Is the problem a missing or damaged boot configuration file?  Is the problem due to missing or damaged system files?  Is it due to a missing or damaged driver?  An incompatible driver?  An incompatible OS update?  In all of these cases, if a problem is found, the system will attempt to correct the problem either by restoring a file using a cache of files (for example, a corrupted driver file), using a system restore point, or recreating a database using other data (such as rebuilding a registry hive or the file system).  The system will also detect and report a bad hard disk or bad memory, but given that these are hardware issues, we can’t do much to fix them.

One very cool thing about the Windows Recovery Environment is that the computer manufacturer or IT administrator will be able to store a "base" configuration on the recovery partition.  That way the user will have the ability to restore their Windows Vista PC to the "factory new" state without having to reinstall the operating system.  Also, if you enable Windows Backup, you can restore the backed-up system state using Windows RE.

More detailed information on the Windows Recovery Environment and how to use it is available on the Windows RE team blog.  The important thing for most users though is to just let the recovery system do its repair job automatically.  In addition to reducing both the support costs for IT managers and the frustration that users face when their Windows PC just won't boot, one of the most important scenarios that the Windows Recovery Environment will reduce is the wipe-and-reload approach that, in my mind, is resorted to far too frequently.  Certainly without the benefit of the Windows Recovery Environment, wipe-and-reload may have been the most pragmatic solution in the past, but not with Windows Vista.  You should push back hard whenever someone tells you to wipe and reload a Windows Vista machine because it won't boot.

So next time you hear one of those recordings on the phone (and I hope you never need to), remember that we monitored the call not just for the quality of the support, but also for the quality of the product.

jim


Comments

  1. Posted on: December 14, 2006 at 1:45PM  

    how to install WinRE to the local drive?

  2. Posted on: December 27, 2006 at 1:20PM  

    Hey mxsevilla:  I'm not sure you want to do that given the premise under which RE works.  However, the answer is probably better provided to you via the folks over at the Windows RE Team blog.

  3. Posted on: February 26, 2007 at 7:54PM  

    Several improvements to backup in Vista would be:

    1. Ability to restore files from the image.

    2. Ability to choose which drive(s) to backup and/or restore.

  4. Posted on: April 25, 2007 at 7:48AM  

    Dear Sirs;

    Please provide removal instructions for Vista,

    I want my XP back. (My mobile machines still have it or my office would be crippled)

    I was tasked with setting up an office for my company, this required acquisition of computers and various peripherals(like printers!!).  Unfortunately due to your monopoly position you have forced retailers to only sell "vista" machines.  These machines do not work with my (most- not just mine)  peripherals and the most obvious solution is to use XP.

    I am told that removing vista is not as simple as a "format" or partition wipe, so I require your instructions on how to remove vista so I can bring my office back to life.  Please provide the instructions required to remove vista as my office can not function without its peripherals.

    Peter m

  5. Posted on: July 12, 2007 at 1:15PM  

    "One very cool thing about the Windows Recovery Environment is that the computer manufacturer or IT administrator will be able to store a "base" configuration on the recovery partition."

    This is a cool feature, till OEM manufacturers start including it on the hardisk in place of a Vista OEM DVD in the box. Then when your hard-drive crashes, or the recovery partition is deleted; your S.O.L.

    :(

  6. Posted on: November 14, 2007 at 2:53PM  

    During the past two weeks I have purchased two new laptops both running Vista Home Premium.

    After running Disk Cleanup on the first one, an HP laptop, on reboot I got a OS not found, boot configuration database corrupt. HP did not include the tools to fix this and in fact the bcd was not corrupt, it just was missing the field that named the operating system.

    Returned the laptop to BestBuy - at the time blaiming the machine.

    Then I bought a Lenovo laptop. About a week after getting it I ran Disc Cleanup and again on reboot I got a OS Not Found.

    In both instances I accepted the default checked boxes in Disc Cleanup.

    Fortunately Lenovo provides a method to restore the machine from dvd.

    I also have a Vista Home Preminum desktop machine, Acer, where Disc Cleanup runs without trashing the OS / BCD.

    To be honest, I find it difficult to understand how an operating system can be released with this kind of an issue - some googling showed I'm not alone.

    The four different methods of restoring the BCD on the Msoft site did not work on the HP for lack of tools and the fact that the BCD was not corrupt.

    Personally, it would seem to me that a simple backup copy of the text file that is the BCD which could be renamed would be a fairly easy temporary solution. Of course the idea that what used to be the boot.ini now having a fancy name and xml tags seems to have more entertainment value than necessity.

    In the meantime, since I oversee a number of machines, I am advising that, especially for laptops, no purchases should be made until this issue is resolved.

  7. Posted on: December 01, 2007 at 2:05PM  

    I don't think the new RE is "one of the best" new features of Vista, it IS the by far best improvement over XP.  Allowing mass storage drivers to be loaded from USB would be a distant second.  I will not miss the Recovery Console dinosaur one bit, and the smarter repair routine is a very welcome addition.  Big thanks to the Vista team for getting this part right!

  8. Posted on: May 02, 2008 at 3:41PM  

    I downloaded and installed SP1 for Vista on the mistaken belief it would fix all the bugginess in Vista. Silly me for believing that. Now the pc won't boot at all. I can get as far as "Normal boot" or "Repair"...neither selections work. Is there a "safe mode" in Vista?

  9. Posted on: May 27, 2008 at 2:57PM  

    It would be nice to see windows recovery environment be able to use truecrypt encrypted system partitions.  I installed the recovery environment as an f8 option(which boots after the truecrypt pre-boot authentication bootloader), and the recovery environment is not able to see truecrypt system partitions.  The load drivers is no good, since truecrypt is a program that must run, and mount the partitions in an un-encrypted form.  I also tested using the recovery environment with a vistape boot disk.  I was able to load truecrypt this way, and mount my c: partition, and my recovery partition...

    however windows recovery environment does not see these truecrypt mounted partitions.

  10. Posted on: August 29, 2009 at 9:38AM  

    well jimall you have shared a very vital info with us! i appreciate it.

  • Page:
  • 1
  • 2

Trackbacks

  1. Posted by: Welcome to Flaphead.com @ Home on December 06, 2006 at 8:50AM
  2. Posted by: Richard G. Harper - Microsoft Windows Support and More on December 30, 2006 at 2:09PM

    For what will likely be my final post for 2006, I wanted to make an opportunity to respond to those who

  3. Posted by: Windows Vista Team Blog on January 03, 2007 at 7:59PM

    Many people share the dream that the various electronic devices they use should do what they want without