Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!194.134.4.91.MISMATCH!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.167 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.68; '*S*': 0.01; 'subject:admin': 0.09; 'am,': 0.13; 'wrote:': 0.15; 'call?': 0.16; 'uac': 0.16; 'header :In-Reply-To:1': 0.22; 'windows': 0.27; 'booth': 0.30; 'message- id:@gmail.com': 0.32; 'error': 0.33; 'header:User-Agent:1': 0.34; 'there': 0.34; 'to:addr:python-list': 0.34; 'normally': 0.34; 'explicit': 0.35; 'subject:/': 0.36; 'received:google.com': 0.37; 'using': 0.38; 'received:209.85': 0.38; 'received:192': 0.38; 'received:209.85.161': 0.38; 'subject:: ': 0.38; 'received:192.168.1': 0.39; 'to:addr:python.org': 0.39; 'received:209': 0.39; '740': 0.84; 'elevation': 0.84; 'heh.': 0.84; 'subject:write': 0.84; 'username.': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=XFvwC9yyLM7bqMdWJimYEfhIFvhVBwjO+TyGHKPl+IQ=; b=px9OdQxwHRx1hdT2GjQUfVoapcPmzmb91ObM3A5spap0Uu7vTm45k5DjI+IeX/ogKG jnRDrKE4fDn/c5BZcaqwu51E1sfMuiMGmOg9poXrHbYnYpYmB9Wbm5CO0yMrYKTeplPy dOAAHWfkhhj7mux1xGkwW1cNAIjfxUpII6iAI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=DTSxf7Jl1mgjwxKgenmZ67fye+dmUORDaoJ51mn4QTx4Sxv+5K8cyB8CMM2mDUroq7 +tPuyaBwePbf85BOibZjFMMhLSYHdpybXsgtC/dj6u5KH6wZn2V8TlK1nFYjd2z75j3w KrAaY3ZQ8tCT5Wj0WwtHySbHDyRhv11UCzvLs= Date: Fri, 24 Jun 2011 14:02:54 -0500 From: Andrew Berg User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 ThunderBrowse/3.3.5 MIME-Version: 1.0 To: "comp.lang.python" Subject: Re: how to write to registry without admin rights on win vista/7 References: <321efdbf-e2e7-44db-90f2-60d784b6e5c1@d1g2000yqm.googlegroups.com> In-Reply-To: X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 9 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1308942191 news.xs4all.nl 182 [::ffff:82.94.164.166]:54381 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:8395 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.