Hi GeoffVass,
Firstly many thanks for the reply, as you say you raise some good points in respect of the registry backup which extend beyond Gud-Ole-WinXP which many would rebuke me for using in the first place but YES you are right because many websites I have looked at extract the registry from system-restore (if its up and running at the time, many disable it due to their own preferences/reasons) However system restore reg backups are bespoke & hidden etc so writing a batch to uncover the relevant reg files, copy them to a backup folder is kinda self defeating in a way when System-Restore can do this without a backup copy, however you would probably only need these backups when your system is "bricked" & then its difficult to access system-restore without windows running anyway? Namely you would need to use an offline method of restoration (you find yourself between a rock and a hard place).
The problem I'm guessing (correct me if I am wrong) is that if you use the reg.exe method you will encounter a multi layered structure of access permissions, you would need to know the relevant keys that had system, administrative permissions etc & need to reinstate them otherwise you will wind-up with, as you put it, the registry data will be incomplete
So the registry will end up with a mish-mash of entries which don't relate to each other. In other words, restoring the registry in this way most likely will not fix whatever registry problem you have.
Thus you could compound the problem using the reg.exe route. I think reg.exe/regedit.exe are best suited for a collection or singular set of reg keys. My preference was to use command-line, there are options in windows but if your OS is "bricked" the registry needs offline access anyway. So as Penpen has stated a full system backup is required to be sure & is the best overall policy.
So with everyone's valuable comments in mind, rather than using reg.exe/regedit.exe it might be better option would be to back up the individual files (in binary) that comprise the registry as the registry is the most often culprit or cause of a partial or complete system failure.
Now opting to take this route raises 3 other problems (There could be others please feel free to educate me),
1) These files are hidden etc for normal usage.
2) Registry files have layered permissions and
3) Using conventional copying methods will choke on SAM & USER registry components they will not let you copy "files in use" or files that are being used by windows, so a work around is needed.
So in terms of windows options (I've used majorgeeks as it is a reputable well known web-site and I've given a one-point of call to ease the location for the files, they are all freeware, you can get these all from the authors web-sites if you so wish also:
AND Always use a virus scanning tool before opening or using any of these files its just good practice - safety notice!
1) You could use ERUNT 1.1j which can be used in command-line format also (XP>)
https://www.majorgeeks.com/files/details/erunt.html
2) Mitec do a freeware registry copy tool-not sure if it is command-line aware (Not for XP)
https://www.majorgeeks.com/files/detail ... overy.html
3) Tweaking.com have a freeware registry backup util (Portable version, just cuz I like portable stuff)
https://www.majorgeeks.com/files/detail ... table.html
4) Acelogix RegBak 1.6.594.1 9 (works on XP also Not win11)
https://www.majorgeeks.com/files/details/regbak.html
others may suggest alternatives, this is just to help or aid others who may visit this web-page looking for a ideas.
On the command-line option my preference really used in conjunction with a batch/CMD-file wrapper some VSS options:
Majorgeeks does not seem to have a lot of the below so I've listed their respective web-sites
1. You could use a program called RawCopy (freeware XP>Win10 Autoit program)
https://www.majorgeeks.com/files/details/rawcopy.html
2. Extents V1.0.0.2 (Freeware it does work in XP not sure about other OS's Win+Command-line)
http://reboot.pro/files/file/316-extents/
3. Hobocopy, the author does now point to a program called ShadowSpawn (freeware/open-source XP>)
https://www.softpedia.com/get/System/Ba ... Copy.shtml
4. ShadowSpawn by Candera (No Longer available & difficult to obtain but found using WayBackMachine) select the appropriate vers to meet your needs. (grab it whilst you still can, it works in conjunction with other copy utils like robocopy emcopy fastcopy Xcopy etc)
ShadowSpawn-0.2.2-x86.zip
ShadowSpawn-0.2.2-x64.zip
the vcredist dependencies if needed are also on this web-page below X86 & X64. You will encounter redirects in Wayback but it does link to the download momentarily
https://web.archive.org/web/20170423020 ... /downloads
5. TSCopy (seems to work with XP open-source copies locked or in-use files click the green Code button with down facing arrow the X86 & X64 apps are within the download.zip file, they are python coded files)
https://github.com/trustedsec/tscopy
Maybe other site members could post their Favs also, if for any reason the links above do not work you can opt to use your own search engine to find them
I think this is the preferred route for myself a batch-file wrapper with appropriate VSS but others may have other ideas or concerns.
Muchas Gracias Everyone,
David