Published by


Brink's Avatar
Administrator

Posts: 17,357

Show Printable Version 


How to Create Elevated App Shortcut without UAC Prompt in Windows 10

information   Information
When you open an application file with Run as administrator, you will get a UAC prompt for approval before the app is allowed to run with elevated rights.

In addition, Windows will not allow elevated apps to run at startup by default.

If you want to run an app as administrator (elevated) without getting a UAC prompt or at startup, then you can create an elevated task to run the application as a workaround to do so.

This tutorial will show you how to create a shortcut of an elevated task to run an app as administrator without getting a UAC prompt in Windows 10.

You must be signed in as an administrator to be able to create and use the elevated shortcut.



Here's How:

1. Press the Win+R keys to open the Run dialog, type taskschd.msc, and click/tap on OK to open Task Scheduler.

2. Click/tap on Task Scheduler Library in the left pane of Task Scheduler, and click/tap on Create Task in the right Actions pane. (see screenshot below)

Click image for larger version. 

Name:	Elevated_task_shortcut-1.png 
Views:	110 
Size:	74.3 KB 
ID:	92686

3. In the General tab, type a name (ex: "Elevated command prompt") you want for this task, and type an optional description of the task. (see screenshot below)
Note   Note
Make note of this task name. You will need to know it in step 8 and when you create a shortcut of this task in step 13 below.


Name:  Elevated_task_shortcut-2.png
Views: 2887
Size:  26.8 KB

4. In the General tab, check the Run with highest privileges box. (see screenshot below)

Name:  Elevated_task_shortcut-3.png
Views: 2879
Size:  26.5 KB

5. In the General tab, select Windows 10 in the Configure for drop down menu. (see screenshot below)

Name:  Elevated_task_shortcut-4.png
Views: 2871
Size:  27.8 KB

6. Click/tap on the Actions tab, and click/tap on the New button. (see screenshot below)

Name:  Elevated_task_shortcut-5.png
Views: 2877
Size:  20.7 KB

7. Type cmd.exe in the Program/script field. (see screenshot below)
Note   Note
This is what is being used to open the elevated shortcut from, so it cannot be changed to anything else.


Name:  Elevated_task_shortcut-6.png
Views: 2867
Size:  14.1 KB

8. Type the command below into the Add arguments field, and click/tap on OK. (see screenshot below)

/c start "Task Name" "Full path of application file"

Note   Note
Substitute Task Name in the command above with the task name (ex: "Elevated command prompt") you used in step 3 above.

Substitute Full path of application file in the command above with the actual full path of the application file you want to run as administrator.

For example: /c start "Elevated command prompt" "%windir%\System32\cmd.exe"


Name:  Elevated_task_shortcut-7.png
Views: 2880
Size:  20.1 KB

9. You will now see this new action listed. (see screenshot below)

Name:  Elevated_task_shortcut-7b.png
Views: 2862
Size:  16.0 KB

10. Click/tap on the Conditions tab, uncheck the Start the task only if the computer is on AC power box, and click/tap on OK. (see screenshot below)

Name:  Elevated_task_shortcut-8.png
Views: 2875
Size:  33.8 KB

11. You will now see this new task (ex: "Elevated command prompt") listed in the Task Scheduler Library. You can now close Task Scheduler if you like. (see screenshot below)

Click image for larger version. 

Name:	Elevated_task_shortcut-9.png 
Views:	93 
Size:	65.2 KB 
ID:	92695

12. Right click or press and hold on your desktop, click/tap on New, and click/tap on Shortcut.

13. Type the command below into the location field, and click/tap on Next. (see screenshot below)

schtasks /run /tn "Task Name"

Note   Note
Substitute Task Name in the command above with the task name (ex: "Elevated command prompt") you used in step 3 above.

For example: schtasks /run /tn "Elevated command prompt"


Name:  Elevated_task_shortcut-10.png
Views: 2862
Size:  15.3 KB

14. Type a name (ex: "Elevated command prompt") you want for this shortcut of the task, and click/tap on Finish. (see screenshot below)

Name:  Elevated_task_shortcut-11.png
Views: 2860
Size:  12.3 KB

15. Right click or press and hold on the new shortcut on your desktop, and click/tap on Properties.

16. Click/tap on the Change Icon button in the Shortcut tab. (see screenshot below)

Name:  Elevated_task_shortcut-12.png
Views: 2870
Size:  20.2 KB

17. Click/tap on OK. (see screenshot below)

Name:  Elevated_task_shortcut-13.png
Views: 2854
Size:  6.1 KB

18. Click/tap on Browse, navigate to and select the application file (ex: "%windir%\System32\cmd.exe") you want to run as administrator, click/tap on Open, select the icon you want for the shortcut, and click/tap on OK. (see screenshots below)
Note   Note
You can use any icon you want for this shortcut.


Click image for larger version. 

Name:	Elevated_task_shortcut-14.png 
Views:	50 
Size:	71.7 KB 
ID:	92700

19. Click/tap on OK. (see screenshot below)

Name:  Elevated_task_shortcut-15.png
Views: 2869
Size:  20.4 KB

20. You can run at startup, Pin to Taskbar, Pin to Start, add to All apps, add to Quick Launch, assign a keyboard shortcut to, or move this elevated shortcut to where you like for easy use.



That's it,
Shawn