Well, like I said, I've never done it in Python, and this is going back a bit, 
so some things might be different, but I'm not talking about RegSaveKey or 
RegRestoreKey, I'm talking about using EnumKey and CreateKey.  As far as I can 
remember, I didn't have any special permissions for that.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tim Roberts
Sent: Friday, December 05, 2008 1:20 PM
To: Python-Win32 List
Subject: Re: [python-win32] Walking the registry and creating reg files

Dahlstrom, Roger wrote:
> ...  Basically what I'm saying is not that you need *no* permissions, just 
> that you don't need any *special* permissions - if you have permission to 
> read it and enumerate the subkeys, that is (at least in my experience, maybe 
> I'm not doing exactly what the request is) sufficient.

Almost.  The RegSaveKey and RegRestoreKey functions, which export and
import entire subtrees, need the SE_BACKUP_NAME privilege.  The
administrator account can get that privilege, but you have to use APIs
to ask for it.

http://msdn.microsoft.com/en-us/library/ms724917.aspx

--
Tim Roberts, [EMAIL PROTECTED]
Providenza & Boekelheide, Inc.

_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32


DISCLAIMER:
This e-mail, and any attachments thereto, is intended only for use by the 
addressee(s) named herein and
may contain legally privileged and/or confidential information. If you are not 
the intended recipient
of this e-mail, you are hereby notified that any dissemination, distribution or 
copying of this e-mail, and 
any attachments thereto, is strictly prohibited. If you have received this in 
error, please immediately notify 
me and permanently delete the original and any copy of any e-mail and any 
printout thereof. 
E-mail transmission cannot be guaranteed to be secure or error-free. The sender 
therefore does not accept 
liability for any errors or omissions in the contents of this message which 
arise as a result of e-mail transmission.

NOTICE REGARDING PRIVACY AND CONFIDENTIALITY
Direct Edge ECN LLC may, at its discretion, monitor and review the content of 
all e-mail communications.

www.directedge.com
_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to