Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question

migrated from Oct 4 '10 at 15:57

This question came from our site for professional and enthusiast programmers.

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 4 '10 at 15:34
I mean elevate without UAC prompt. – uwe Oct 5 '10 at 5:13
up vote 6 down vote accepted

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.

share|improve this answer
so this means it is not possible to do it without prompting from a non elevated process. – uwe Oct 6 '10 at 11:45
You can use Task Scheduler to do this. See my answer. – paradroid Oct 7 '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 7 '10 at 19:24

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.

share|improve this answer
+1 Great solution! Now I can run Process Explorer from the start menu without UAC bothering every time. – Johan Bezem Dec 20 '11 at 7:07
You Sir are a legend!!! – Jeremy Thompson Mar 24 '13 at 23:21

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.

share|improve this answer
This is possible, but to get a service you need to elevate in the first place. – uwe Oct 5 '10 at 5: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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .