X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Date: Thu, 15 Apr 2010 21:43:19 -0400 From: DavidArnstein AT panix DOT com To: cygwin AT cygwin DOT com Subject: scripting elevated privilege on Windows 7 Message-ID: <20100416014318.GA19127@panix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Note-from-DJ: This may be spam I am dealing with Windows UAC for the first time. From a script, I would like to launch a process with elevated (administrative) privilege. I can accept that Windows will pop up a modal dialog box confirming the elevated privilege. Is there an existing utility in Cygwin or elsewhere. An example of what I would like: I have a program named backall that I want to execute with administrative privelege. I am looking for some command xxx that I could invoke from a shell script as xxx backall Does such a utility exist? If I wanted to enhance cygstart to support this feature, which Microsoft API should I use? -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple