New
#20
The Registry worked perfectly.
Last edited by Brink; 30 Jan 2012 at 00:42. Reason: removed off topic issue
The Registry worked perfectly.
Last edited by Brink; 30 Jan 2012 at 00:42. Reason: removed off topic issue
You're welcome. :)
Last edited by Brink; 30 Jan 2012 at 00:42. Reason: removed off topic issue
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."
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
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?
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 /YIt 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.
Hope this helps, :)
Shawn
Last edited by Brink; 21 Nov 2012 at 11:35. Reason: added quotes in command to be universal
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, likereg export HKEY_CURRENT_USER trial.regBut not when I try to export a deeper subkey, and get an error as
The operation completed successfully.reg export HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion trial.regI wonder what I am missing or if it does not actually export subkeys as I understand from the results of "reg export /?".
ERROR: Invalid syntax.
Type "REG EXPORT /?" for usage.
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.
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