delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/04/15/21:43:34

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
User-Agent: Mutt/1.5.18 (2008-05-17)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019