regtool load gives access denied

Corinna Vinschen corinna-cygwin@cygwin.com
Tue Feb 3 14:28:00 GMT 2015


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.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20150203/d756ca2b/attachment.sig>


More information about the Cygwin mailing list