By creating an elevated shortcut, you can run the program as an administrator without prompting from the UAC. Here is a simple step-by-step guide on how to do this.
When you try to run a program in Windows, it will run immediately without any prompts, unless it requires additional permissions. If the execution requires administrative privileges, a User Access Control (UAC) prompt will appear.
For example, if you try to start a Windows terminal with administrative privileges, you will see a UAC prompt.
In general, the UAC prompt makes it easy to start programs with administrative privileges. All it takes is one click. But what if you want to run a program as an administrator without the prompt? After all, it is tiresome to have a frequently opened program prompt you every time.
Fortunately, you can run any program as an administrator without a UAC prompt by creating an elevated shortcut. It’s pretty easy.
So without further ado, here is how to run a program as an administrator in Windows without a prompt.
The following procedure works the same in Windows 10 and 11.
Run the program as administrator without a prompt
To open the program as administrator without a UAC prompt, you need to create an elevated shortcut. Usually, you can use the “runas” and “savecred” commands to create a custom shortcut. However, there is a quirk to this.
Basically, you create a scheduled task to run the program as an administrator, and then create a shortcut to run that scheduled task. It sounds strange and roundabout, but it is very simple.
- Click on the “Start” icon on the taskbar.
- Locate and open “Task Scheduler.”
- Click on the “Create Task” option.
- Enter a name in the “Name” field.
- Copy the name you just entered.
- Check the “Run with highest authority” checkbox.
- Go to the “Actions” tab.
- Click the “Create New” button.
- Select “Run Program” from the “Action” pull-down menu.
- Click the “Browse” button.
- Select the EXE file of the program.
- Click the “Ok” button in the “Action” window.
- Go to the (optional) “Conditions” tab.
- (Optional) Uncheck the “Start the task only when the computer has AC power” checkbox.
- Press the “OK” button.
- Exit the Task Manager.
- Right-click on the desktop.
- Select “Create New > Shortcut”.
- Type the following command in the space provided. Replace the dummy name with the actual name of the copied scheduled task.
schtasks /run /tn "scheduled task name"
- Press the “Next” button.
- Enter the selected name.
- Press the “Finish” button.
- You can then use the newly created elevated shortcut to run the program as administrator without prompting.
First, you must create a scheduled task. However, this task will not be launched automatically. Instead, it will only run with the shortcut you create.
To begin, search for “Task Scheduler” in the Start menu and open it. Click on “Create Task” in the sidebar of the Task Scheduler.
Enter any name in the “Name” field and copy it. You will need it in the next step. Then check the “Run with highest privileges” checkbox.
Click the “Create New” button in the “Action” tab.
Click the “Browse” button, select the EXE file of the program you want to run as administrator, and click the “OK” button.
IMPORTANT NOTE: When entering the path to the EXE file in the “Program/Script” field, enclose it in quotation marks as shown.
(Optional) If you are using a laptop, you will need to make one more change. Open the “Conditions” tab and uncheck the “Start task only if computer is on AC power” checkbox.
Click the “OK” button to save your changes. Exit the Task Scheduler.
Go to your desktop and select “New Shortcut”.
Paste the following command in the space provided, replacing the dummy name with the actual task name you just copied.
Enter the name you chose in the blank field and click the [Done] button.
The created elevated shortcut can be used to run the program as administrator. Double-clicking the shortcut will launch the program with administrator privileges without prompting from the UAC.
If necessary, you can change the icon of the shortcut. Right-click on the shortcut, select “Properties” to display the “General” tab, and click “Change Icon”. Select the desired icon and click “OK.
That is all. It is as easy as running the program as an administrator without prompting.
We hope this brief guide to working with Windows is helpful.
If you get stuck or need help, please comment below and we will do our best to help.