[python-win32] Vista, _winreg and "Access denied"

Tim Golden mail at timgolden.me.uk
Tue May 27 13:08:19 CEST 2008


le dahut wrote:
> Hello
> 
> With Vista (XP works fine), when using SetValueEx in a script ran by an 
> administrator I get "Access Denied". I know that's it's due to UAC so 
> does someone know how to do a 'sudo' when using something else than 
> CreateProcess ?

I'm not on Vista at the mo, so this is a very tentative reply, but this
article:

http://www.codeproject.com/KB/vista-security/VistaElevator.aspx

looks useful. Do let us know if it is or isn't because I'm sure this
question is going to come up more and more.

TJG


More information about the python-win32 mailing list