2

How can I start a process without UAC in the following scenario?

Windows Vista or 7 UAC is enables Standard user is logged in Standard user knows admin credentials Progrmm (running in the standard users context) starts process with the admin account.

How can I suppress the UAC? Is there any way? I imagine that this is exactly the scenario the UAC should "protect" the user from, but perhaps there is a solution

kcode
  • 465
  • what do you mean "suppress the UAC"? Do you mean not get a UAC prompt about elevating? not elevate? not need to elevate and have things succeed even though you are not elevated? – Kate Gregory Oct 04 '10 at 15:34
  • I mean elevate without UAC prompt. – kcode Oct 05 '10 at 05:13

3 Answers3

6

The transition from non elevated to elevated will always include a UAC prompt unless you have turned off UAC or turned the notification level way down on Windows 7.

Now if you have an elevated process, all the processes it launches will be elevated without another prompt. So for example if you start a command prompt by Right click, Run As Administrator, then everything you launch from that prompt (eg type Notepad and press Enter) will be elevated too.

Finally services are exempt from UAC, so if you have a service do what you want there will be no prompting, though of course you will need to elevate in order to install the service.

Kate Gregory
  • 1,288
  • so this means it is not possible to do it without prompting from a non elevated process. – kcode Oct 06 '10 at 11:45
  • You can use Task Scheduler to do this. See my answer. – paradroid Oct 07 '10 at 17:00
  • @jason but as with installing a service, there will still be one UAC prompt in the process - in this case from the Task Scheduler, right? I think @uwe wants not just to avoid the UAC prompt each time it runs, but also as part of setting it up. – Kate Gregory Oct 07 '10 at 19:24
5

You can use Task Scheduler to start the restricted program without initiating a UAC prompt on startup.

You can also use it for normal shortcuts.

paradroid
  • 22,992
0

One way we have gotten around things like this in the past is to use a service as a proxy to start the process up for the user.

T.E.D.
  • 171
  • This is possible, but to get a service you need to elevate in the first place. – kcode Oct 05 '10 at 05:13
  • @uwe - Only when the service is first installed. If you can't get permission to do that either, then you have a human trust problem, not a computer problem. – T.E.D. Oct 23 '13 at 14:50