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

2
  • 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? Oct 4, 2010 at 15:34
  • I mean elevate without UAC prompt.
    – kcode
    Oct 5, 2010 at 5:13

3 Answers 3

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.

3
  • so this means it is not possible to do it without prompting from a non elevated process.
    – kcode
    Oct 6, 2010 at 11:45
  • You can use Task Scheduler to do this. See my answer.
    – paradroid
    Oct 7, 2010 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. Oct 7, 2010 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.

2
  • +1 Great solution! Now I can run Process Explorer from the start menu without UAC bothering every time. Dec 20, 2011 at 7:07
  • You Sir are a legend!!! Mar 24, 2013 at 23:21
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.

2
  • This is possible, but to get a service you need to elevate in the first place.
    – kcode
    Oct 5, 2010 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, 2013 at 14:50

You must log in to answer this question.

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