On Feb 3 15:28, Corinna Vinschen wrote: > On Feb 3 15:11, Corinna Vinschen wrote: > > On Feb 3 05:33, Andrew Schulman wrote: > > > I want to back up and restore some of my registry settings. I start a > > > shell > > > with "Run as administrator", and regtool save seems to work fine for > > > saving: > > > > > > $ regtool save /HKCU/Software/SimonTatham/PuTTY/Sessions PuTTY.reg > > > $ > > > > > > However when I try to reload the saved settings, I get access denied: > > > > > > $ regtool load /HKCU/Software/SimonTatham/PuTTY/Sessions PuTTY.reg > > > Error (5): Access is denied. > > > > > > Does anyone know why this fails? I'm puzzled by this since I'm running > > > in an > > > admin shell. > > > > It's a bug in regtool. I'm looking into it... > > To be a bit more exact, the "load" operation is *not* the mirror > operation to "save". In fact, "load" loads a full registry hive of a > user into the registry, and its mirror operation is "unload", which > unloads a user hive from the registry. > > The bug here is that "save" has no mirror operation in regtool at all. > It's a bit puzzeling. There should have been a "restore" operation but > nobody ever implemented it.
I just implemented a restore operation in regtool. Please note the -f option, it's really necessary sometimes (but you should always ask yourself what process might have an open handle). I created a new snapshot for testing and uploaded it to https://cygwin.com/snapshots/ Please test this ASAP. I'm planning to release 1.7.34 this week, preferredly tomorrow. Thanks, Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat
pgpdd1jGs1udr.pgp
Description: PGP signature