- MAXIMUMpcguides – Windows Vista tips, tricks, help, and how-to guides - http://maximumpcguides.com/windows-vista -

Run a Program with Administrative Privileges without UAC Prompts

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 [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 [2]

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

  4. Check off Run with highest privileges.

    bypass-uac-prompts-3 [3]

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

    bypass-uac-prompts-4 [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 [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 [6]

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

    bypass-uac-prompts-7 [7]

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