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

30 Jan 2012   #20
Infinite

Windows 7 Ultimate SP1 - 64 Bit
 
 

The Registry worked perfectly.


My System SpecsSystem Spec
.
30 Jan 2012   #21
Brink

64-bit Windows 10 Pro
 
 

You're welcome.
My System SpecsSystem Spec
19 Nov 2012   #22
Injust

N/A
 
 

Something the ERUNT readme file says:
"Note: The "Export registry" function in Regedit is USELESS (!) for making a complete backup of the registry. Neither does it export the whole registry (for example, no information from the "SECURITY" hive is saved), nor can the exported file be used later to replace the current registry with the old one. Instead, if you re-import the file, it is merged with the current registry without deleting anything that has been added since the export, leaving you with an absolute mess of old and new entries."
My System SpecsSystem Spec
19 Nov 2012   #23
Brink

64-bit Windows 10 Pro
 
 

Quote   Quote: Originally Posted by Injust View Post
Something the ERUNT readme file says:
"Note: The "Export registry" function in Regedit is USELESS (!) for making a complete backup of the registry. Neither does it export the whole registry (for example, no information from the "SECURITY" hive is saved), nor can the exported file be used later to replace the current registry with the old one. Instead, if you re-import the file, it is merged with the current registry without deleting anything that has been added since the export, leaving you with an absolute mess of old and new entries."
Hello Injust,

I agree with that for the complete registry. That's one of the main reasons why I recommended using System Restore for the complete registry instead.

Of course, nothing can beat creating a system image.
My System SpecsSystem Spec
.

19 Nov 2012   #24
Injust

N/A
 
 

Yup, but many members here have recommended me to export the registry instead of creating an image or using a third-part tool like ERUNT
My System SpecsSystem Spec
19 Nov 2012   #25
Brink

64-bit Windows 10 Pro
 
 

Ooof, that's not good. Exporting parts of the registry is fine, but not the whole thing.
My System SpecsSystem Spec
21 Nov 2012   #26
Neophile

Windows 7 Ultimate 64-bit SP1
 
 

Hello,
How would be the command to backup a sub-key like at command prompt to use in a batch file or other simple script, please?
My System SpecsSystem Spec
21 Nov 2012   #27
Brink

64-bit Windows 10 Pro
 
 

Hello Neophile,

You can type reg export /? in a command prompt and press Enter to get more details about it like below.



For example, if you want to export the Software registry key below, ....
HKEY_CURRENT_USER\Software
.... you would type this into the command prompt below to export it with any filename.reg you like. The Y switch is to copy over if that filename already exists.
REG Export "HKCU\Software" filename.reg /Y
It will export the filename.reg file to wherever you have the command prompt open to. In my screenshot below, this would into the C:\Users\Brink folder.

Registry - Backup and Restore-reg.jpg

Hope this helps,
Shawn


My System SpecsSystem Spec
21 Nov 2012   #28
Neophile

Windows 7 Ultimate 64-bit SP1
 
 

Thank you Brink. I had already tried regedit /?, but this was wrong and just opened the registry editor. I had not found the correct help command. Now I tried, but it does not always work . It works when I export a full key, like
reg export HKEY_CURRENT_USER trial.reg
The operation completed successfully.
But not when I try to export a deeper subkey, and get an error as
reg export HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion trial.reg
ERROR: Invalid syntax.
Type "REG EXPORT /?" for usage.
I wonder what I am missing or if it does not actually export subkeys as I understand from the results of "reg export /?".

It would be very useful for many usages. An example is the Outlook profile for e-mail accounts settings, because it saves all accounts, passwords, etc. The usage is not limited to this, but with this I could make periodic auto-savings.
My System SpecsSystem Spec
21 Nov 2012   #29
Brink

64-bit Windows 10 Pro
 
 

Since the key path has a space in it, you'll just need to have it wrapped in quotes like below instead.

reg export "HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion" trial.reg
My System SpecsSystem Spec
Reply

 Registry - Backup and Restore




Thread Tools




Similar help and support threads
Thread Forum
System Restore Points with full or only partial Registry backup?
Assume I create a System Restore Point. Is a full Registry backup included? or only a partial backup for all branches which are core Windows 7 related? By the way: Is each SRP independent from the others? If I delete lets say the 3rd out of 5 SRPs. Are the two 2 SRPs following the...
Backup and Restore
WINDOWS Backup & Restore utility not recognizing my backup file
I periodically backup my data files which is on another hard drive than WIN7 OS so this backup is not a system image. Every time I do a backup I do a restore to a dummy partition to double check the backup was successful. Anyway, I recently tried to restore my backup from March 2014 & the backup...
Backup and Restore
Manually restore registry from restore points
Hi, In XP it was possible to manually copy a backup of the registry from a system restore snapshot. I often deal with laptops where the system registry hive is damaged, in this situation it is not possible to access restore points in the usual way; instead we would access the disk by external...
Backup and Restore
Urgent Problem! Can't restore registry backup, Can't Boot Windows.
What basically happened is... I was installing Adobe After Effects on my computer and i was getting error "Installer can't initialize, restart pending on your system" or some similar stuff. I was trying to find solution on that problem, and what i found was that i have to delete some registry key...
Backup and Restore
Possible to extract registry backup from restore point?
Hi everybody, I was wondering if it is possible to extract the registry backup from a System Restore Point? In Windows XP the restore points were plain folders within the System Volume Information, but in Windows 7 they appear to be compressed into files like...
Backup and Restore


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 03:11.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App