ThisCalculator

Everyday

Create Elevated Shortcut Without UAC Prompt?

Updated · Standard formula, shown below

Create Elevated Shortcut Without UAC Prompt?

This article explains how to create a Windows shortcut that runs a program with administrator privileges without triggering the User Account Control (UAC) prompt. You’ll learn the built-in methods, the limitations, and the safer alternatives, so you can decide which approach fits your needs.

Why UAC Prompts Appear

UAC (User Account Control) is a Windows security feature that prevents unauthorized changes to the operating system. When a program requests administrator rights, Windows shows a consent dialog asking for permission. This prompt appears because the shortcut’s “Run as administrator” option is set, or because the program itself has a manifest that requires elevation. The prompt is designed to protect your system from malware and accidental changes, so bypassing it entirely has security implications.

Built-in Method: Task Scheduler

The only supported way to create an elevated shortcut without a UAC prompt is to use Task Scheduler. This method works on Windows 10 and Windows 11, and it does not require third-party software. Here’s how to set it up:

  1. Press Win + R, type taskschd.msc, and press Enter.
  2. Click Create Task in the right-hand pane.
  3. In the General tab, give the task a name (e.g., “Elevated Program”).
  4. Check Run with highest privileges.
  5. In the Actions tab, click New, then Browse to select the program you want to run.
  6. In the Conditions tab, uncheck Start the task only if the computer is on AC power if you’re on a laptop.
  7. In the Settings tab, uncheck Stop the task if it runs longer than if you don’t want a time limit.
  8. Click OK.

Now create a new shortcut on your desktop that points to the task. Right-click the desktop, choose New > Shortcut, and enter:

schtasks /run /tn "Elevated Program"

Name the shortcut, and you’re done. Double-clicking it will run the program elevated without a UAC prompt.

How the Task Scheduler Trick Works

Task Scheduler runs tasks in the context of the user who created them, but with the “Run with highest privileges” flag, it requests elevation from the system itself. Because the task is already registered with an elevated token, Windows does not show a UAC prompt when the task starts. The shortcut simply tells the scheduler to run the task, and the scheduler handles the elevation silently. This is a documented feature of Windows, not a hack.

Limitations and Caveats

This method has a few limitations you should know:

  • The shortcut will not show the program’s icon unless you manually change it (right-click shortcut > Properties > Change Icon).
  • The task runs in the background, so if the program requires a window, it will appear normally, but the task itself is separate from the shortcut.
  • If the program needs command-line arguments, you must add them in the task’s Action settings, not in the shortcut.
  • If the program is a script or a batch file, you may need to point the task to cmd.exe with the script as an argument.
  • You cannot use this method for programs that require a specific working directory; set it in the task’s Action settings.

Common Mistakes and Troubleshooting

Many users report that the shortcut does nothing or the program doesn’t run elevated. Here are the most common causes:

  • Wrong task name: The name in the shortcut must exactly match the task name, including spaces and case.
  • Task not set to run with highest privileges: Double-check the checkbox in the General tab.
  • Program path is incorrect: In the task’s Action, use the full path to the executable, not a relative path.
  • User account control is set to always notify: Even with the task trick, if UAC is set to “Always notify,” the prompt may still appear. Change it to the default level.
  • Antivirus interference: Some security software may block schtasks from running silently. Add an exception if necessary.

Alternatives: Third-Party Tools

If you prefer a simpler solution, there are third-party utilities that create elevated shortcuts without UAC. These tools typically work by creating a scheduled task behind the scenes, similar to the manual method, but with a friendly interface. Examples include RunAsRob and Elevated Shortcut. However, using third-party tools carries a risk: they may not be updated for the latest Windows versions, and they could be flagged as malware by some antivirus programs. Always download from the official source and review the code if possible.

Security Considerations

Bypassing UAC is a security trade-off. UAC exists to prevent malicious software from making system changes without your knowledge. By creating an elevated shortcut, you are telling Windows that this specific program can always run with admin rights, which means if that program is compromised, an attacker could gain full control of your system. Only use this method for programs you trust completely, such as a registry cleaner or a system utility you use frequently. Never use it for unknown or downloaded software.

Frequently Asked Questions

Does this work on Windows 11?

Yes, the Task Scheduler method works on Windows 11 exactly as it does on Windows 10. The steps are identical.

Can I use this for any program?

Yes, as long as the program can run with admin rights. Some programs may have their own elevation checks that still show a prompt (e.g., user account control inside the app), but that is rare.

Will the shortcut show the program’s icon?

No, by default the shortcut will show a generic icon. You can change it by right-clicking the shortcut, selecting Properties, and then Change Icon, browsing to the program’s executable.

Is it safe to disable UAC entirely?

No, disabling UAC completely is not recommended. It leaves your system vulnerable to malware and can cause some Windows features to malfunction. The Task Scheduler method is safer because it only bypasses the prompt for specific programs.

Why does the program run in the background?

If the program appears to run in the background, it might be because the task is set to run whether the user is logged on or not. In the task’s General tab, select “Run only when user is logged on” to ensure the program’s window appears normally.

Can I use this method for a batch file?

Yes, but you need to point the task’s action to cmd.exe with arguments like /c "C:\path\to\script.bat". Otherwise, the batch file may not run elevated.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.