Manually Restore the Registry From its Backup in Windows Vista or Windows 7

This tutorial provides instructions for replacing your current registry with a backup to fix a possibly damaged registry.



  1. First, access the System Recovery Options.

  2. Next, open a command prompt.

  3. Check each drive's layout to find the Windows directory. It should appear similar to the following image:


  4. Change directories to the :\Windows\System32\ directory. In the below case, the drive letter was D:, so the result was the following command:

    Code:
    cd D:\Windows\System32
  5. Copy your config directory to a backup in case the next steps do not work.

    Code:
    D:\Windows\System32>mkdir configBackup
    
    D:\Windows\System32>copy config configBackup
    config\BCD-Template
    config\COMPONENTS
    config\DEFAULT
    config\SAM
    config\SECURITY
    config\SOFTWARE
    config\SYSTEM
    7 file(s) copied.

  6. Change directories to the config\RegBack directory:

    Code:
    cd config\RegBack
  7. Type the following command to see the directory contents:

    Code:
    dir
    The file sizes need to be the same or at least similar to the following image or this will not work.


    • If there are any size 0 files, do not continue


  8. Copy the files from the RegBack directory to the previous directory: