You want to run programs always with admin rights without UAC prompt. I know it seems easy but actually it's not. So, in this article, I will teach you how you can do that to run programs always with admin rights.
Dealing with a UAC prompt may take a few seconds, but there are several ways you can eliminate that waiting time.
Here are free tools you can use if you want to avoid clicking "Yes" every time
- Click on Elevated Shortcut located on the left sidebar. If you can't find it, type "elevated" in the search box.
- In Target, click on the ellipsis button.
- Search for your executable file, then click on it and click Open.
- For the Shortcut location, you can leave it as it is or change it. If you want to change the location of your shortcut, click on the ellipsis button and choose the location where you want your shortcut to be created.
- Click Create Elevated Shortcut, then wait for your executable file shortcut icon to appear in your chosen shortcut location.
- Open Winaero Tweaker again and go to Manage existing shortcuts. Select the shortcut you have just created, then click Remove Selected. Doing so will remove your task.
UAC Trust Shortcut
- Type the name of your shortcut. In Path, click Browse and search for your executable file.
- Click the "Add now" link, then wait for your shortcut to appear on the Desktop and in the taskbar.
- Go to the Task Scheduler window, then click on Create Task on the right sidebar.
- Under the General tab, type the name of the task.
- Under Security Options, select "Run only when user is logged on" and tick "Run with highest privileges". Click OK.
- Under the Actions tab, click on New and select the "Start a Program" action. In Program/script, browse for your executable file and click OK.
- Go to the Settings tab and tick "Allow task to be run on demand." Click OK so that the task will be added to the Task Scheduler Library.
- Right-click on your desktop. Select New from the drop-down list, then click Shortcut.
- Type schtasks /run /TN “[Task name]” in the location box and click Next. Make sure to replace [Task name] with the name that you used for the General Tab earlier. Click Finish afterward.
- Go back to the Create Task window. Select New under the Actions tab.
- Find "Begin the task" and select "At log on" or "At startup". "At log on" will run the task during a full boot and "At startup" will run the task when you sign in.
- Press OK afterward.
- Drag and drop your executable file into the bottom part of the interface to create a scheduled task.
- Select a location for your shortcut, then wait for it to appear at your chosen location. Do note that if Pin to Start Menu or Pin to Taskbar doesn't work, choose My Desktop.
- Go back to UAC Pass, then drag and drop the created shortcut into the bottom section of the interface. This will delete the scheduled task. Alternatively, you can click the second button down on the top-right corner to delete the task.
- Click on Install RunasRob to disable the UAC prompt.
- Under Logon as, select administrator.
- Click Add application, then search for the executable file and click Open.
- Highlight the executable file once it appears in the list box.
- Click Create shortcut, then Exit. Your shortcut should appear as a RunAsRob icon in the RunAsRob folder.
- TweakUAC has two modes for administrative users. "Turn UAC off now" disables UAC prompts for administrative users. "Switch UAC to the quiet mode" disables UAC prompts for administrative users but enables UAC prompts for standard users.
Summary: Run programs always with admin rights without UAC prompt
- The easiest way to always run a program in administrator mode is to right-click on the program's icon, with your mouse, and select the Run as administrator option.
- Modify the shortcut so it runs with elevated privileges, without a UAC prompt.
- Right-click on the shortcut that you use for that program and select Properties.
- Click on the Shortcut tab.
- Click on the Advanced button.
- Click on Run as administrator option under the Privilege Level section and click OK.
- Click OK again to close your program's properties window.
When you're done using any of these tools, run a program, and see if there's any UAC prompt. If there's none, then your computer has already disabled all UAC prompts.