Home » All » Customization » Vista » Windows | All Categories

Published on 01.05.09 by Brent Trahan

Run a Program with Administrative Privileges without UAC Prompts

Learn how to create a shortcut that starts a software package with elevated rights without the user account control (UAC) boxes that normally appear.

Overall, I like Vista, but I wish UAC were a little less annoying at times.

For instance: Let’s say I need to run a command from the command prompt with the command prompt in elevated mode. I have to right-click the command prompt shortcut and select run as administrator and then click OK on a UAC popup to run the command prompt with elevated privileges. That’s not a big deal, but if you do it over and over again it gets a little annoying

This guide shows you how to create a shortcut that will open any program or script with elevated rights (administrative rights) automatically without any UAC prompts or changing of any UAC settings. The process of creating one of these shortcuts is a little tedious and time consuming, but it’s a time saver in the long run.

In this example, I’m going to create a shortcut that opens the command prompt with elevated privileges and bypass the UAC security prompt at the same time. You could create a shortcut to any program or script that opens with administrative privileges.

Create a Task

First, we need to create a task in the Task Scheduler that opens the command prompt with elevated privileges.

Note: You’ll need follow these directions with a user account that has administrative privileges (you can install software).

  1. Open the Task Scheduler by going to the Start Orb, All Programs, Accessories, System Tools, and open Task Scheduler.

    bypass-uac-prompts-1

  2. Click Create Task on the top right of the Task Scheduler window.
  3. Give the task a name in the Name box in the Create Task window.

    bypass-uac-prompts-2

    Take note of this name. You’ll need it later.

  4. Check off Run with highest privileges.

    bypass-uac-prompts-3

  5. Click New in the Actions tab of the Create Task window.

    bypass-uac-prompts-4

  6. Browse to the location of the command prompt softare (C:\Windows\System32\cmd.exe) in the Program/script box and then click OK.

    bypass-uac-prompts-5

  7. Click OK in the Create Task window and then close the Task Scheduler.

Create a Shortcut

Next, we need to create a shortcut that will run the task we just created.

  1. Right-click an empty space on your desktop, point at New, and then select Shortcut.
  2. Type C:\Windows\System32\schtasks.exe /run /tn “Elevated CMD” in the location box and then click Next.

    bypass-uac-prompts-6

  3. Give the shortcut a name and then click Finish.

    bypass-uac-prompts-7

You’re done! Open the shortcut you just created and you’ll have an elevated command prompt.

Still need help? Ask your computer question now.

Related Guides:

21 Responses to “Run a Program with Administrative Privileges without UAC Prompts”

Subscribe to this guide's comments RSS feed.

  1. Brian says:

    Information like this is so beautiful to me, so elequent, and easy. Not only is it efficient, but it actually solved a problem of mine.

    Thank you sir or madame. Many people would never even glance at this, but I a person who sits at computers for years, and done nothing but explore the inner workings of an operating system for hours, (before there was the internet) just to do so. Could truly appreciate something like this. And this isn’t One nerd to another, its about making things work, better, faster, more efficient. This is actaully the goal of those who restore old cars,and just look at them…

    You have showed me some could have easily done, but never thought of.

    Forgive me if I sound crazy, and if you don’t get what I’m saying, I’ve been looking a solution to a problem that you solved for me.

    But if you get what I’m saying, email me back, with more info, or say “I get what your saying…” Maybe you can help me solve a little, simple problem that drives me nuts, I could solve it the easily, but that’s no fun. If interested email me……. at bchjohnsonart@live.com,

  2. Neo says:

    This tip works, but it has one drawback: Programs will run with the “Below Normal” priority.

  3. Frutiloopis says:

    Don’t works.

  4. JoeBloggs says:

    Always easy to critisize, rather than a stupid one liner, why not add information that will solve the problem you present.

  5. Kevin Brock says:

    @Neo: The solution is to export the task schedule and then edit the . This is 7 by default which is “Below Normal”; you can change this to 5 which is “Normal”. See http://msdn.microsoft.com/en-us/library/aa383070%28VS.85%29.aspx. Then, import the new definition.

  6. Kevin Brock says:

    Well, so comments don’t accept HTML meta characters. My first sentence should have been “The solution is to export the task schedule and then edit the <Priority>.”

  7. Remlap54 says:

    I tested this with a setup.exe file that normally requires an admin password to run but when I click the shortcut, all I get is a brief flash of a black box and then nothing happens. I’m on Windows 7 Ultimate 64 bit. Any suggestions?

  8. Geek says:

    Hi,

    I found a better tool called:
    UAC Trust Shortcut 1.0, its freeware.
    With the tool you can tell UAC which
    programs you do NOT want a prompt.
    It’s basically a UAC whitelist.

    I suggest you download it and I
    recommend it, it’s awesome.

    Have a great day guys.

    Cheers,
    Geek

  9. Boo says:

    When I click OK on the Actions box, it keeps saying “Enter user account information for running this task.” and I don’t know the password to the admin’s account… HELP!!!

  10. Phil says:

    Good Article. I have an exe that opens up a command prompt window. It starts a print server. Your method works well to avoid User Account Control Prompt. Is there a way I can hide the EXE’s window? I don’t want it shown to the user and take a chance of having them close the window by mistake.

  11. Ganesan K says:

    Thank you dude. I search for this steps only.. the same thing how can we do in windows server 2008

  12. donnie darko says:

    I was able to get this to run on Win 7, both 32 and 64 bit Enterprise but no longer. Does anyone know if a Windows update may have killed this off? I get a dos box flashing on the screen and that’s it. Task Scheduler does show the task running if I run the shortcut still logged in as admin, but the program I am launching never appears on the screen. If I create the shortcut for a regular user with power user rights on the machine, still dos box flash, but the task doesn’t start. If you run the command line directly in a dos box you get access denied.

  13. .kain says:

    to donnie darko:
    Replace those “fancy” quotation marks marks under shortcuts properties inside target cell with the regular quotation marks and it works… at least on my 64bitw7ultimate.

    The target should be
    C:\Windows\System32\schtasks.exe /run /tn “Elevated CMD”
    (instead: of C:\Windows\System32\schtasks.exe /run /tn “Elevated CMD”)

  14. .kain says:

    well.. .this blog replacd the regular quotation marks and made my comment weird… but I guess you got the point.

  15. Gmc says:

    Kain,
    I have the same problem but I have no idea what you mean by fancy quotation versus regular quotation?
    Is there more than one kind a quotation?

    • donniedarko says:

      There are different kinds of quotation marks, you don’t see them in something like notepad, but in MS Word, you may have noticed quotation marks with no slant and then quotes that are slanted towards the word in quotes. These are actually different characters and are often not interchangeable when using them in commands.

      not sure if it will display correctly here but ” is different than “x”

    • donniedarko says:

      nope, maybe “”" “x” will show what i mean

  16. Moonjumper says:

    I created everything like you said and I can’t get program to run.
    I see program running in task manager but I can’t see program running.

Leave a Reply

Subscribe to this guide's comments RSS feed.

Microsoft Windows is a registered trademark of Microsoft Corporation. Microsoft Corporation in no way endorses or is affiliated with MAXIMUMpcguides.com. All other products mentioned are registered trademarks of their respective companies. MAXIMUMpcguides IS NOT RESPONSIBLE for any damage or data loss to your computer from using this web site. All information on MAXIMUMpcguides is provided on an AS IS basis with NO WARRANTIES.

Copyright 2006-2014 Brent Trahan. All rights reserved.