Thanks for posting that reg hack.  There is also the elevate powertoy for
command-line invoking a thing with elevation.

Carl

-----Original Message-----
From: Crawford, Scott [mailto:[email protected]] 
Sent: Monday, April 18, 2011 4:45 PM
To: NT System Admin Issues
Subject: RE: Help with Run as Administrator Compatibility mode - UAC in
Windows 7

Correct. You can automate the first step by setting this registry value.
However, you'll need to elevate to edit this section of the registry too so
it may not be worth it.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\AppCompatFlags\Layers]
"C:\\Path\\certreq.exe"="RUNASADMIN"


-----Original Message-----
From: Ben Scott [mailto:[email protected]] 
Sent: Monday, April 18, 2011 3:09 PM
To: NT System Admin Issues
Subject: Re: Help with Run as Administrator Compatibility mode - UAC in
Windows 7

On Mon, Apr 18, 2011 at 2:46 PM, Jonathan <[email protected]> wrote:
> Is there any way to change that setting from the command line? I'm trying
to
> make this batch as silent and end-user friendly as possible, and this is
the
> ONLY thing keeping me from deploying it.

  You are running your batch file in a context that doesn't have
system privileges but trying to make system changes.  The system stops
you from making those changes.  This is by design.

  Tell your users to right-click Run-as-admin the batch file, and then
allow the action when prompted by UAC.

  You might be able to automate the first step, but the user will
always get the UAC elevation prompt.

-- Ben



~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to [email protected]
with the body: unsubscribe ntsysadmin

Reply via email to