Gizmos Needs You

Gizmo's Freeware is Recruiting

 We are looking for people with skills or interest in the following areas:
 -  Mobile Platform App Reviews for Android and iOS
 -  Windows, Mac and Linux software reviews       Interested? Click here

                  

 

How to Create a Program Shortcut to Run Without the UAC Prompt in Windows 7

Do you have a program or script that has to be run as administrator and you want a shortcut for it that doesn’t bring up User Account Control (UAC)? Here is a simple trick that will get rid of the annoying UAC prompt.

The trick makes use of Windows Task Scheduler to create a task with highest privileges. The task is then used in a shortcut. First, create the task:

  1. Open Task Scheduler by entering “sched” (without quotes) in the Start search box. Another way is  Control Panel-System and Security-Administrative Tools-Schedule tasks.
  2. In the right pane of the Task Scheduler interface (shown in a previous tip), click “Create Task”.
  3. The dialog shown below will open.Create a task
  4. Give the task a name. You will need to use this later.
  5. Be sure to check the box by “Run with highest privileges”. This is what keeps the UAC prompt from popping up.
  6. Click the tab “Actions”
  7. Click the button "New..."
  8. The dialog window shown below will open.Add an action to the task
  9. Enter or browse to the full path and name of the program you want to run. If it has spaces,  enclose the entire path and name in quotation marks.
  10. Click "OK"
  11. If you are using a laptop or other battery-powered device, click the "Conditions" tab and remove any power settings that might interfere with running on a battery.
  12. Click “OK”

Next, you create a shortcut to run the task:

  1. Right-click on an empty spot on the desktop.
  2. In the context menu that opens, choose New—Shortcut.
  3. In the box under “Type the location of the item”, enter
         schtasks /run /tn "your_taskname"
    where your_taskname is what was used in step 4 above. Be sure to keep quotes around the task name.
  4. Click “Next”
  5. Enter a name for the shortcut.
  6. Click “Finish”
  7. Place the shortcut anywhere convenient. 

And there you have it – a shortcut that will run a program with elevated privileges without the UAC dialog popping up.

Get your own favorite tip published! Know a neat tech tip or trick? Then why not have it published here and receive full credit? Click here to tell us your tip.


This tips section is maintained by Vic Laurie. Vic runs several websites with Windows how-to's, guides, and tutorials, including a site for learning about Windows and the Internet and another with Windows 7 tips.

Click here for more items like this. Better still, get Tech Tips delivered via your RSS feeder or alternatively, have the RSS feed sent as email direct to your in-box.

Share this
4.625
Average: 4.6 (24 votes)
Your rating: None

Comments

by KLR on 14. May 2014 - 21:23  (116227)

Thanks, that did the trick. Runs a bit slower than normal, is the only drawback.

by Marks (not verified) on 28. November 2012 - 13:16  (103017)

Great trick, thanks.

One thing you should add, how to change the New Shortcut icon to that of the originl Program shortcut icon.

1) First go to original program icon and right click and choose Properties. Click Change Icon box at bottom. Copy the link from the Browse box.
2) Go the Task Scheduler Short Cut Icon you just created to bypass UAC. Click Shortcut tab and then choose Change Icon box at bottom. Delete the existing link in Browse and then Paste the link you copied in 1) above.

Now you have icon that matches original program icon.

Thanks again for your trick to bypass UAC, much appreciated.

by jivadas (not verified) on 29. September 2012 - 20:59  (99973)

I don't really need this, but will give it a try. It looks like fun.
Let's have more such tricks.

xØx
jd

by eikelein on 29. September 2012 - 2:12  (99938)

@v.laurie
Thanks a BIG bunch, Vic.
I'll run to try this in Windows 8 (just installed on my notebook).

by FJMcNasty (not verified) on 28. September 2012 - 17:55  (99919)

Thanks. Nice and clear. I had seen this elsewhere,but the author made such a complicated mess of the explanation that my brain started to leak.

by dadwhiskers on 28. September 2012 - 15:29  (99911)

"Here is a simple trick that will get rid of the annoying UAC prompt." Just turn the nuisance UAC completely off. I did that when I first set up, use a good antivirus, don't go to stupid sites. I know that "isn't recommended", but it works splendidly for me.

by J_L on 28. September 2012 - 23:03  (99930)

The thing is, if UAC is on, it's better for everybody.

Casual users don't need programs to run as admin. System administrators (or any techie with good IT background) knows how to work around it. Who do we have left? Lazy techies that don't think they need it. Of course there are exceptions, like users that have third-party security which can replace the UAC (anti-execution, HIPS, and maybe Behaviour Shield), but none of those programs work as smoothly within Windows.

Linux users scoff at how everybody hates UAC, when they're already used to sudo. I completely see their point. An OS cannot be secure if anybody/anything can have administrative rights, even the owner of the computer (w/o serious [third party] modifications like sandboxing/virtualization and whitelisting). If you disable UAC and use an admin account, that means every single application you run can ruin the system, because they all have admin rights.

I haven't even mentioned Internet Explorer Protected Mode, and whatnot. You use a third party browser? Doesn't matter as long as another application displays webpages. You think that non-browser app uses the browser installed within every Windows (even when removed, parts are kept for this purpose), or a browser some users install?

Lastly, if you're such a lazy admin that you cannot work with it check out this: http://www.howtogeek.com/howto/windows-vista/disable-user-account-contro...
It only disables the prompts (apps w/ shield icon) for the admin (meaning apps w/o shield icon runs as limited and Protected Mode is untouched), and standard users still can use your password for admin programs (instead of programs not working right, unless logging in your account and doing who knows what).

by MidnightCowboy on 29. September 2012 - 3:59  (99940)

An excellent summary J_L :)