How To Use The Task Scheduler To Launch Programs Without UAC Prompts

Do you need to frequently run applications which require administrative permissions but, each time you run them, you have to go through the UAC (User Account Control) prompt? If that's the case, there are several solutions to bypass these prompts, some more complex than others. They allow you to run these programs without going through UAC prompts and without turning off UAC. In this article we will demonstrate a quick and simple solution that works in all cases and it involves using the Task Scheduler.

Our solution requires you to go through the following steps:

Step 1: Create A Task Which Runs The Program You Want

First of all, you need to open Task Scheduler. More information on how to do this can be found in this tutorial: How to Start the Task Scheduler & Use the Basic Task Wizard.

Next, you’ll have to create a new task which will start the program that you want to use without UAC prompts. You can find complete information about how to create tasks in this article: How to Create Advanced Tasks with the Task Scheduler .

When you create this task, in the the General tab, type the name of the task (remember this name, you will need it later on) and check the box which says "Run with highest privileges". This sets the task to run with administrative permissions.

To make sure that you don't have any compatibility issues, go to the "Configure for" drop-down box, at the bottom of the Create Task window. Select Windows 8.1 if that’s your operating system, or Windows® 7, Windows Server™ 2008 R2 if you’re using Windows 7.

In the Actions tab, create the action that launches the program. The drill is simple here: click or tap New, select the action "Start a program", specify the path to the program that will be executed and click or tap OK. For this article we took as an example the Command Prompt, as shown below.

Your last stop is the Settings tab. Here you have to make sure that the "Allow task to be run on demand" checkbox is selected. Also, make sure that, when the task is already running, another instance won't be started, by selecting the "Do not start a new instance" option.

Click or tap OK and you are done. You just created a task that launches the program that you want to use.

Now, to make sure that your task works, take it for a test. Go to the Task Scheduler Library, right-click or tap and hold the task that you just created and press Run.

Did the program you specified launch? If it did, you are done. If it did not... well... start over. :)

In our case, the test ran without any problems and, as a result, the Command Prompt was launched with administrative permissions.

Step 2: Create A Shortcut To The Newly Created Task

The second step is to create a shortcut that launches the task that you created. That, in turn, runs the program you selected without a UAC prompt being displayed. Sounds complicated, I know. Fortunately it is not that hard. You'll see!

If you wish to learn or review how to create a shortcut, follow the steps from this article: How To Create Shortcuts in Windows 7 & Windows 8.1.

An important difference when creating a shortcut towards a task vs. a normal shortcut is that you need to type schtasks /run /tn "Task Name" in the "Type the location of the item" field. Task Name needs to be replaced with the actual name of the task. In this command, the parameter /run simply runs a specified task while /tnallows you to type the name of the task that you want to run.

Once the shortcut is created, if you double-click on it, it will run the task that you created and it will launch the program you specified with administrative permissions but without the UAC prompt showing up.

NOTE: If you want to change the icon of the shortcut that you just created, follow the instructions found in this article: How To Change the Icon of A Shortcut in Windows.

Conclusion

This wasn't that hard, was it? A bit time consuming but definitely worth the effort, especially if you are working often with applications requiring administrative permissions. To learn more about other cool things that can be done with the Task Scheduler, read the articles recommended below.