Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.



Windows 7: Registry - Backup and Restore


Registry - Backup and Restore

How to Backup and Restore the Registry in Windows 7 and Vista
Published by Brink
20 Feb 2009
Published by

How to Backup and Restore the Registry in Windows 7 and Vista

information   Information
This will show you a few options on how to export the registry as a .reg file backup, and how to import the .reg file to restore to the registry in Windows 7 and Vista.
warning   Warning
Importing or merging a .reg file backup will only restore the keys and values that were included in the exported backup. If you have added new keys and values since the .reg file backup was created, then these items will not be affected or restored when you import or merge the older exported .reg file backup to the registry. If you wanted to replace the registry completely with a backup, then System Restore (see Method One in OPTION ONE & TWO below) will allow you to do this instead.





OPTION ONE
Backup Registry



METHOD ONE
Using System Restore

NOTE: This is the best method to use since it will replace the current registry with the contents of the registry as it was on the date the restore point was created. These restore points contain information about registry settings and other system information that Windows 7 uses. System Restore points do not include the personal user files.
1. Create a restore point.
NOTE: See information at that link for more details on this.
Tip   Tip
Creating a restore point before making any changes to Windows 7 is the recommended method to use to have the registry backed up.







METHOD TWO
Export Only Part of the Registry as a Backup

NOTE: This will allow you to only export a HKEY or key branch in the registry to a .reg file as a backup.
1. Open the Start menu and type regedit in the search line, then press Enter. (See screenshot below)
Name:  Search_Box.jpg
Views: 11615
Size:  33.4 KB
2. If prompted by UAC, click on Yes to approve.

3. To Export a Registry HKEY Branch
NOTE: This will allow you to backup the entire selected HKEY branch with all of it's subkeys and key values to a .reg file as a backup.
A) Right click on a HKEY branch that you want to backup, and click on Export. (See screenshot below)
Registry - Backup and Restore-export-2.jpg
B) Select where you want to save the exported .reg file to, type in a name for the .reg file, and click on the Save button. (See screenshot below)
Name:  HKEY_Export_Location.jpg
Views: 11312
Size:  117.5 KB
4. To Export a Registry KEY Branch
NOTE: This will allow you to backup the entire selected KEY branch under a HKEY with all of it's subkeys and key values to a .reg file as a backup.
A) Right click on a KEY branch under the HKEY that you want to backup, and click on Export. (See screenshot below)
Name:  Export_Key.jpg
Views: 11426
Size:  120.6 KB
B) Select where you want to save the exported .reg file to, type in a name for the .reg file, and click on the Save button. (See screenshot below step 3B)



OPTION TWO
Restore Registry



METHOD ONE
From a System Restore Point

NOTE: This will replace your current registry and system files in Windows by restoring the registry and system files in Windows back to how they were on the date the restore point (Option One, Method One) was created.
1. Do a System Restore using a restore point with the date you want to restore you Windows 7 registry and system files back to.
NOTE: See information at link for more details on this.
Tip   Tip
Doing a system restore is the recommended method to use to undo any changes made to Windows with a restore point dated before you made the changes.







METHOD TWO
Restore a REG File to the Registry in Windows

NOTE: Any new keys and values added to the registry not included in the .reg file at the date it was created will not be affected.
1. Merge from the REG File
A) Right click on the backup .reg file and click on Merge. (See screenshot below)
Name:  Import-2.jpg
Views: 11171
Size:  55.5 KB
B) Click on Yes and Yes to approve the merge.

C) Go to step 3.
OR

2. Import from Regedit
A) Open the Start menu and type regedit in the search line, then press Enter. (See screenshot below)
Name:  Search_Box.jpg
Views: 11615
Size:  33.4 KB
B) If prompted by UAC, click on Yes to approve.

C) Click on File on the menu bar, then click on Import. (See screenshot below)
Registry - Backup and Restore-import.jpg
D) Navigate to where you saved the backup .reg file and select it, then click on the Save button. (See screenshot below)
Registry - Backup and Restore-import_location.jpg
E) You will now see the import progress window. (See screenshot below)
Name:  Import_Progress.jpg
Views: 10893
Size:  30.4 KB
3. Click on OK.

Tip   Tip
If you get the error below, then you will need to do a system restore instead since the keys are in use.

Name:  Error.jpg
Views: 11770
Size:  55.2 KB

That's it,
Shawn




.

24 Feb 2009   #1
Lordbob75

Windows 7 Ultimate x64, Mint 9
 
 

Thank you, very good to know. (Now to start actually backing up my computer!)

~Lordbob

My System SpecsSystem Spec
.

24 Feb 2009   #2
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

LOL, you're welcome Lordbob.
My System SpecsSystem Spec
18 Feb 2010   #3
Stevy22

Windows 7 and MAC
 
 

Good for new Users... good job
My System SpecsSystem Spec
22 Jul 2011   #4
Shadowjk

Windows 7 Professional x64 SP1 ; Windows Server 2012 R2 Standard
 
 

Hey Shawn ,

I found out another way - Not sure if you have a tutorial on it but you can Restore the registry using a System Repair Disk

Open Command Prompt from System Repair options and then enter the following

Code:
regedit /s c:\Users\*User_Name*\Desktop\registrybackup.reg
Of course C:\ Being the Install Drive Letter and Desktop being the Folder Location of the backup

This might be handy if system restore couldn't restore the registry
My System SpecsSystem Spec
22 Jul 2011   #5
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

Thank you Josh.

That's another good option. A system restore (at boot if needed) would be safer and more thorough though.
My System SpecsSystem Spec
04 Aug 2011   #6
mustafa3333

32
 
 

t Y
My System SpecsSystem Spec
04 Aug 2011   #7
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

You're welcome Mustafa, and welcome to Seven Forums.
My System SpecsSystem Spec
21 Dec 2011   #8
MAB68

Windows 7
 
 

I deleted the registry and do not have a back up. What is your suggestion to reinstall?
My System SpecsSystem Spec
21 Dec 2011   #9
koolkat77

Microsoft Community Contributor Award Recipient

Windows 7 Home Premium 64Bit
 
 

specify the registry you deleted?
My System SpecsSystem Spec
Comment

 Registry - Backup and Restore





Tutorial Tools




Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 11:56 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33