May
14
2011

How to Restore Registry Hives on Windows 7

There will be situation where Windows 7 won’t boot and Startup Repair won’t do any good do fix it.  Sometime corrupted Registry Hives can cause problem. In this article I’ll explain you how to restore Registry Hives on Windows 7.

 

Step 1:

Insert the Windows 7 Installation or Repair disk into your drive and reboot the System if you don’t have the Repair disk you could download it from Download Windows 7 System Recovery Discs — The NeoSmart Files. Make sure  you have change the BIOS boot order so the CD or DVD drive is listed first.

Step 2:

Then you’ll be prompted to “Press any key to boot from disk” so go ahead and press Enter

Ste 3:

Then it will give you language selection option click Next

Step 4:

Then you’ll find and option to “Repair your Computer

Step 5:

Then you’ll be prompted to Select the Operating System i.e. Windows 7, select that and click Next



Note: Some occasions you’ll not find any operating system listed. Don’t panic just click Next

Step 6:

Now click on “Command Prompt

Step 7:

Under command prompt type in C: and press enter (Assuming C drive is Windows installation folder)

Type in cd Windows\System32\Config and press Enter

 

image

Then type in MD Temp and press Enter. Command prompt will flash once.

Step 8:

Then lets make a backup of these files. Enter the following commands

copy BCD-Template Temp and Press Enter

copy COMPONENTS Temp and Press Enter

copy DEFAULT Temp and Press Enter

copy SAM Temp and Press Enter

copy SECURITY Temp and Press Enter

copy SOFTWARE Temp and Press Enter

copy SYSTEM Temp and Press Enter

 

Step: 9

Then type in the following commands

ren BCD-Template BCD-Template.bak and Press Enter

ren COMPONENTS COMPONENTS.bak and Press Enter

ren DEFAULT DEFAULT.bak and Press Enter

ren SAM SAM.bak and Press Enter

ren SOFTWARE SOFTWARE.bak and Press Enter

ren SECURTY SECURITY.bak and Press Enter

ren SYSTEM SYSTEM.bak and Press Enter

 

Step 10:

Then type in the following commands

copy C:\Windows\System32\Config\Regback\BCD-Template C:\Windows\System32\Config\BCD-Template and Press Enter

copy C:\Windows\System32\Config\Regback\COMPONENTS C:\Windows\System32\Config\COMPONENTS and Press Enter

copy C:\Windows\System32\Config\Regback\DEFAULT C:\Windows\System32\Config\DEFAULT and Press Enter

copy C:\Windows\System32\Config\Regback\SAM C:\Windows\System32\Config\SAM and Press Enter

copy C:\Windows\System32\Config\Regback\SECURITY C:\Windows\System32\Config\SECURITY and Press Enter

copy C:\Windows\System32\Config\Regback\SOFTWARE C:\Windows\System32\Config\SOFTWARE and Press Enter

copy C:\Windows\System32\Config\Regback\SYSTEM C:\Windows\System32\Config\SYSTEM and Press Enter

or

CD Regback

cd *.* ..

Step 11:

Now type in Exit and Click on Restart

image

 

See it you are able to boot into Windows properly.

You could also use Paragon Software (Free edition) to restore those file. Use the File Transfer to copy the files over. Thanks to SIW2 for this tip.

 

Update: I have created a video tutorial

 

How to Restore Registry Hives on Windows 7

Related Posts

About the Author: Shyam Sasindran

Shyam is the founder and editor of Captaindbg.com. He used to write technical articles for few websites about Tips and tricks about Windows and other technologies.

  • jack Smith

    i followed all of our instructions but at step 10 it says that the file cannot be found on each command.

  • Shyam Sasindran, MVP

    Instead type in

    copy *.* ..

    and see if that works.

  • Robert

    Can this be done if I’m logged on to windows?

    • Shyam Sasindran, MVP

      No … Those files will be in use you have to do it through Recovery.

  • Paul

    Since this seems like a rather simple file management operation with no running of windows specific commands, would you be able to do this from a installation on a separate partition our from a linux live cd?

    While in linux I can see all the files you mention above, so it should just be a matter of following the steps. But I wanted to ask just the same

    • Shyam Sasindran, MVP

      Yes that should work. Our intention is to replace those files so Windows won’t go in boot loop and start again. Please try the Linux Live CD method and report back the results.

  • Jan

    I have tried this method to the point of copying files from Regback directory but files bcd-template and components weren’t there. I just copied other 5 while leaving bcd-template and components not renamed in config directory. It didn’t work though. What now?

    • Renbryan

      Having the same issue. did you get an answer?

      • Jan

         Unfortunately not. I was searching all over internet for other suggestions – nothing. I searched and searched system folders for possible other locations of those files – in vain. Finally after like a month a gave up: backed up all my files using Hiren’s Boot CD and restored system to original state from restore partition (that fortunately I have).

  • Jehmer1

    Followed your steps and on my first reboot it worked like a charm. Only difference was my windows directory was D: instead of C: (if you don’t know or remember it will tell you where at the top of the selection screen where you choose command prompt or the other options). Truly, you are a godsend for providing this information. Thanks!!

  • Triddy 77

    You are a dead set ‘Legend’, you have saved my backside sooo much, I really appreciate you making these post! You rock!!
    This fix my black screen of death (BSOD) with a white arrow, I was system restoring after a windows update upset my Espon Scanner! After the system reto completed I could not log on, use safe mode or anything, so I used the repair disk to access the company prompt and follow your video, and voila it’s all back! The Dell tech support guy to me the put my hard drive in another computer and back them up and then blank of my computer and start again, but because my hard drive have raid and I am in th country I could not do this! Any how you rock!! Many thanks!!

Disclamer

We try our best to provide accurate information. All data and information provided on this site is for informational purposes only. All information is provided on an as-is basis. Suggestions made and opinions expressed by authors here are their personal one's and not of their current employers.

Twitter Widget

TheWindowsClub

TheWindowsClub News

Find us on Google Plus

UA-21360431-1