How to restore the Last Known Good Configuration feature in Windows 8.1

As you know, Winaero is always focused on improving the usability of technology and especially Windows. If you love something special in Windows or in some other app or service that is no longer accessible or removed, I am always looking for solutions to your problems and sharing fixes and workarounds. Recently, I featured a unique site which revived desktop gadgets and sidebar complete with screenshots of all of them, shared an exclusive tutorial on how to restore the missing Briefcase feature and showed how to unlock the Start Screen pinning ability for all files. In this article, I would like to share with you a new way I discovered to unlock the Last Known Good Configuration feature in Windows 8.1 and Windows 8 which Microsoft silently disabled. Let me explain why you might need it. 

Windows 8 and its successor, Windows 8.1 have more automatic diagnostics built-in than any previous version of Windows to inspect booting related issues and automatically repair them. Startup repair often kicks in by itself when Windows fails to boot. Besides, there are features like Reset and Refresh which significantly make it easier to restore the system to a healthy state by automating the whole procedure. But sometimes, these features are an overkill.

Suppose you installed a bad device driver inadvertently (e.g. some third-party driver to flash your phone) or some software driver and it started causing a BSOD while booting. Or maybe you installed an incorrect version of a particular driver which is not fully compatible. If a Blue screen error starts happening right after you did something like that, then you definitely know what broke your PC and would want to fix it quickly without restoring your whole system using System Restore, let alone Reset/Refresh. While the newly introduced features are useful for automating the restoration of the entire system, they can also take lots of time.

In previous versions of Windows, there was an extremely useful feature called Last Known Good Configuration which allowed you to quickly fix a broken registry hardware configuration to the one when Windows last booted properly. It was very handy in the situation I've described above. Last Known Good Configuration stored a copy of the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet key which contains information about all Windows services and drivers.

Selecting Last Known Good Configuration at startup from F8 options did 2 things:
- It restored the hardware configuration in the registry control set indicated by the LastKnownGood key instead of the default
- It restored the device drivers too of the last working configuration, should a newly installed device driver make Windows unbootable

In favor of new additions, this wonderful feature was disabled in Windows 8.1 and Windows 8. The exciting news is that you can still enable it! Let's see how it can be done.

  1. Open the Registry editor (see how).
  2. Go to the following key:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Configuration Manager

    Tip: You can access any desired Registry key with one click.

  3. Create a new DWORD value at the above key called BackupCount by right clicking in the right pane and choosing New -> DWORD value (32-bit) and set its value to 1 or 2, depending on the number of backups you wish to store in the registry. I recommend a value of 2. If the BackupCount value already exists, then simply double click it and set its value to 2.
  4. Now you must create a sub-key. Right click on the 'Configuration Manager' key in the left pane and select New -> Key called LastKnownGood. Then create a new DWORD value in the right pane called Enabled and set it to 1 (0 means disabled, 1 means enabled). LastKnownGood

Now the Last Known Good Configuration feature is enabled and will start backing up your HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet registry branch at every successful boot.

How to access the Last Known Good Configuration in Windows 8.1

To access the Last Known Good Configuration in Windows 8.1, run the following command at an elevated command prompt:

BCDEdit /SET "{Current}" BootMenuPolicy Legacy

Tip: See all the possible ways to open an elevated command prompt in Windows

The above command will enable access to the regular legacy boot menu via the F8 key.

Advanced Boot Options

Alternatively, you can also make the boot menu show on every boot with the following command:

BCDEdit /SET "{bootmgr}" displaybootmenu yes

Note: You can control all the hidden bcdedit options with my exclusive tool, Boot UI Tuner.

Boot UI Tuner

Boot UI Tuner

Boot UI Tuner provides you full control over the boot manager in Windows 8 and Windows 8.1. Also, you might discover many hidden secret commands shared in our blog announcement of the Boot UI Tuner app.

9 thoughts on “How to restore the Last Known Good Configuration feature in Windows 8.1

  1. jewels

    That totally worked dude! Thanks..

    Am gonna have a look and see if you have any tips on getting windows restore point working. The one in Win 8 doesn’t actually do anything. I tried and ended up with it making no changes, then i ended up with a factory reboot instead and lost all of my programs.

    Like or Dislike: Thumb up 0 Thumb down 0

    Reply
  2. eric

    Hi, I used this link to turn on last good config and legacy boot menu in win 8.1:

    https://winaero.com/blog/how-to-restore-the-last-known-good-configuration-feature-in-windows-8-1/

    all was good and I was getting the advanced menu only when I selected f8.

    then I applied your boot ui tuner to turn off windows logo and loading circle. After doing so the f8 menu is no longer accessible (I see the f8 but when I click windows loads). When I use the “enable advanced options of boot menu setting” in the tuner I am able to get to the advanced menu using f8 but I see the menu on EVERY reboot and boot.

    Is there a way to make this get back to the configuration where I just get the f8 menu when I select it on boot/reboot?

    Thanks!

    Like or Dislike: Thumb up 2 Thumb down 0

    Reply
  3. Chaz

    I appreciate this article and will use it to help ,y computer when I can, but I was wondering if there was an alternative way to enable LKGC without launching Windows. I can’t start my computer, and can’t boot using media to even reinstall my OS for unknown reasons, so launching in LKGC seems like my best bet. I am obviously willing to sacrifice my data in order to turn my ~$2000 computer back into a functional computer, but it seems like that is not even an option at this point. Any response will be greatly appreciated as I’ve been at this for a few days now and have almost no hope of using my computer again anytime soon.

    Thank you,

    Chaz

    Like or Dislike: Thumb up 0 Thumb down 0

    Reply
  4. Roshan

    I’m totally lost searching for DWORD thingy..
    Help please!

    Like or Dislike: Thumb up 0 Thumb down 0

    Reply
    1. Sergey Tkachenko Post author

      You can create it.

      Like or Dislike: Thumb up 0 Thumb down 0

      Reply
  5. Dave

    Will this work for Windows 10 as well?

    Had updates, so ran the updates and when I turned it back on, it reverted back to my previous version. Problem is though that I get the login screen, but it doesn’t go any further. I have the mouse pointer, but a black screen. I was rather disappointed when I didn’t see “Last Known…..” as an option and nothing else works.

    Stupid me never set a restore point either.

    Like or Dislike: Thumb up 0 Thumb down 0

    Reply
    1. Sergey Tkachenko Post author

      Well, I have not tried yet. But it should work!

      Like or Dislike: Thumb up 0 Thumb down 0

      Reply
    2. robert

      It works on Windows 10, but I run into the same problems as Eric, e.g. can’t get to advanced recovery options with F8 and if I enabled Advanced to always display, I can’t set timeout to automatically enter Windows.
      Rober

      Like or Dislike: Thumb up 0 Thumb down 0

      Reply
  6. Sarah

    Thanks helped me a lot

    Like or Dislike: Thumb up 0 Thumb down 0

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *