Always run an application as an administrator


Run application as an administratorSome applications won’t run on Windows Vista because they were designed for earlier versions of Windows. Most of the time, the problem is caused by UAC. You have three choices to work around this:

To mark an application so that UAC automatically prompts you to elevate privileges, follow these steps (after the jump):

  1. Right-click the application, and then click Properties.
  2. Click the Compatibility tab.
  3. Select the Run this program as an administrator checkbox, and then click OK.

If this doesn’t work (like, for a command prompt), you can modify the shortcut UAC settings instead.

Every time you run the program in the future, UAC will automatically prompt you to run it with elevated privileges. I’ve done this for Visual Studio 2005, Visual Studio 2003, and some batch files I’ve written that require admin rights. You should only need to do this for programs written before Windows Vista.

20 Responses to “Always run an application as an administrator”

  1. Karim Fliti says:

    Ok, I have a game that works perfectly on my dad’s Dell Latitude D520 (Windows Xp SP 2) but when i try to play it on my HP Pavillion dv6000 (Windows Vista) it will start and then it will shut down by itself, i’ve tried the compatibility trick and there are no differences what should i do? Is it my laptop or is it Vista if so then is there a trick to it? Just for reference the game name is Trackmania Nations ESWC if anybody finds a way please email me at kingdomhearts2k5@hotmail.com

    Greatly Appreciated,
    Karim

  2. atcomputo says:

    Hi. Is there a way to always run an application as an administrator in Windows XP Pro so that I don’t have to rigth click the app and select Run As… Something like a shortcurt or a batch that do this automatic. Thaks a lot for your help.

  3. ABC says:

    how can we set this option programmiticaly

  4. John says:

    The point is to have an app always run as admin for a user who does not have admin – ever. You are not going to be there when they run the app. You do not want them to have the admin password – only to run this specific app as admin.

    The rest of the solutions are really nothing but your own shortcuts.

  5. Anonymous says:

    My run as administrator is greyed out how do i fix this?

  6. Anonymous says:

    i cannot click on the box of running as admin ( in the properties).
    how?

  7. R.Fox says:

    In Vista – right click program then look at the top –
    Should be third one down for Run as Admin

  8. Nick says:

    What was the response to 10/9/2009 – run as admin is greyed out? I’m running into the same problem.

    Thanks

  9. rajasthan says:

    Ya, me too

  10. Anonymous says:

    Disable User Account Control (UAC) for administrators:
    1. Click on the Start button and type in secpol.msc and hit Enter.
    2. Expand Local Policies and then Security Options.
    3. Scroll to the bottom and locate “User Account Control: behavior of the elevation prompt for administrators in Admin Approval Mode”.
    4. Right click on this setting and select Properties.
    5. Set the value to Elevate without prompting.
    6. Reboot

    • Anonymous says:

      Thanks for that but
      typing secpol.msc in the windows 7 run box just gives
      “Windows cannot find secpol.msc”

  11. Me The one says:

    Great now I have to figure out how to run programs as an admin that has a password without knowing the pass…

  12. Ron says:

    how do i open as an administrator an application.
    because i forgot my administrator password.

  13. Radioleg says:

    Run as administrator greyed out?

    Anonymous: Sure, turning off UAC works, but I am sure that’s not what most people want to do.

    I read elsewhere about this trick, and it worked for me:

    1) Open an elevated command prompt
    2) Type the following: net use administrator /active:yes

    You should have the “run as admin” option now.

  14. Kate says:

    How can I set it so someone else can execute a program with “run as administrator” without needing know the admin password? My children have a game that only works correctly when it has administrator access…but I do not want to have to give my children overall administrator access. Is there any way to “run as administrator” for this specific program without me having to enter in the admin password every time? Appreciate any help!

  15. bobby says:

    thanks that helped a lot now comp is good thank you :)

  16. That Kid... says:

    THE EASY WAY (MUST ALWAYS PUT PASSWORD) I know how to do it! Go to properties, compatibility, and go to “Show Settings For All Users” enter your password, and then it will let you choose if it runs as administrator for ALL users.

  17. mohan says:

    Many Thanks, I spent my seconds always right clicking on the application and “Run as Administrator”.