how to write to registry without admin rights on win vista/7

Andrew Berg bahamutzero8825 at gmail.com
Fri Jun 24 15:02:54 EDT 2011


On 2011.06.24 03:48 AM, Duncan Booth wrote:
> http://stackoverflow.com/questions/130763/request-uac-elevation-from-within-a-python-script
Heh. On Windows 7, using 'runas' for the operation in os.startfile()
gives me a normal UAC prompt.

Is there any way to ask for elevation from a subprocess.Popen() call?
Launching an application that normally asks for elevation automatically
fails with error 740 - 'The requested operation requires elevation'. The
runas utility needs an explicit username.



More information about the Python-list mailing list