Create Elevated Shortcut without UAC prompt in Windows 10

    Create Elevated Shortcut without UAC prompt in Windows 10

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

    Published by BrinkCategory: Customization
    28 Jul 2016 Last Updated: 10 Sep 2017 at 13:15

    Published by


    Brink's Avatar
    Administrator

    Posts: 24,423

    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:	464 
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: 15039
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: 15054
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: 15028
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: 15015
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: 15008
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: 15032
Size:  20.1 KB

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

    Name:  Elevated_task_shortcut-7b.png
Views: 15028
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: 15002
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:	373 
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: 15031
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: 15025
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: 15041
Size:  20.2 KB

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

    Name:  Elevated_task_shortcut-13.png
Views: 15016
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:	168 
Size:	71.7 KB 
ID:	92700

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

    Name:  Elevated_task_shortcut-15.png
Views: 15029
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


  1.    25 Jan 2017 #1
    Join Date : Jan 2017
    Posts : 2
    10

    Went through this and it works for me with my Admin User.
    Thanks loads. ​I tried a few other forum posts and this was the only one that worked for me.
    Sys: Windows 10 Pro with Admin and Local Users.

    Now next question is how to get it working for my Standard (now called Local User?) User?
    I copied the new shortcut to the Local desktop but it don't work. I get that "Do you want this app ..." msg.
    Checked the Security tab and the Local User had full privileges to it.
    Suggestions appreciated
      My ComputerSystem Spec
  2.    25 Jan 2017 #2
    Join Date : Oct 2013
    Posts : 24,423
    64-bit Windows 10 Pro build 17017
    Thread Starter

    Hello rangergord, and welcome to Ten Forums.

    You could use the method in the tutorial below to create an elevated task that a standard user can run without getting a UAC prompt, but it won't run at startup for a standard user.

    Elevated Program Shortcut - Create for Standard User - Windows 7 Help Forums
      My ComputersSystem Spec
  3.    28 Jan 2017 #3
    Join Date : Jan 2017
    Posts : 2
    10

    Thanks for the suggestion.
    I have anther question about these prompts.
    Why do some apps require the prompt and some don't?
    For example, I have two file managers, FreeCommanderXE which requires the annoying prompt both in the Admin and Local users and, FoldViewer, which does not have the prompt in either for the Admin or the Local User.
    Was something written into the code or is there a setting?
      My ComputerSystem Spec
  4.    28 Jan 2017 #4
    Join Date : Oct 2013
    Posts : 24,423
    64-bit Windows 10 Pro build 17017
    Thread Starter

    It comes down to if the app is programmed to request for elevated rights (aka: "Run as administrator") to run.

    If it does, then you'll get prompted by UAC.
      My ComputersSystem Spec
  5.    14 Feb 2017 #5
    Join Date : Feb 2017
    Posts : 2
    Windows 10 Pro Edition (64-Bit)

    Thanks. This allowed me to setup Speedfan to run on startup on windows 10.
      My ComputerSystem Spec
  6.    14 Feb 2017 #6
    Join Date : Oct 2013
    Posts : 24,423
    64-bit Windows 10 Pro build 17017
    Thread Starter

    I'm glad it could help Draegor, and welcome to Ten Forums.
      My ComputersSystem Spec
  7.    14 Feb 2017 #7
    Join Date : Feb 2017
    Posts : 2
    Windows 10 Pro Edition (64-Bit)

    Nice reply time. Made an account to show my appreciation.
      My ComputerSystem Spec
  8.    02 Mar 2017 #8
    Join Date : Aug 2016
    Posts : 15
    Win 10

    I've tried the OP's directions and was successful at setting up a shortcut for VirtualBox on a standard user account.

    However, I tried it for a VPN (Private Internet Access) and it starts fine, but eventually stops with an error that says, to the effect, "Needs Administrator Privileges to Run".

    BTW, normally, the user is just prompted for the Admin password, and, when entered, no problem. For obvious reasons, would like to avoid the user from needing to know that password.

    At some point in near future I'd like to try the RunAsSpc or elevated RunAs command solutions mentioned in a link above, but would like to know if anyone had any experience with VPNs or other programs that seem to have some hidden call to another program where the Admin rights may not carry over?

    How did they overcome this problem?

    Was it with one of these two other solutions, and, if not, any tips?

    And, are these other solutions likely to bypass that or those calls?

    Thanks.
      My ComputerSystem Spec
  9.    02 Mar 2017 #9
    Join Date : Oct 2013
    Posts : 24,423
    64-bit Windows 10 Pro build 17017
    Thread Starter

    Hello transplanted99,

    The shortcut created using this tutorial can only be used in an administrator account.

    The shortcut created in the tutorial below instead can be used in a standard user account that may work better for you, but not sure with a VPN.

    Elevated Program Shortcut - Create for Standard User - Windows 7 Help Forums
      My ComputersSystem Spec

 


Similar Threads
Tutorial Category
Customization Create Wi-Fi Settings shortcut in Windows 10
How to Create a Wi-Fi Settings shortcut in Windows 10 Wi-Fi is a wireless local area network (WLAN) technology and standard that uses high-frequency radio waves to provide wireless high-speed Internet and network connections. This tutorial...
Tutorials
Customization Create Reset this PC shortcut in Windows 10
How to Create a Reset this PC shortcut in Windows 10 Resetting lets you choose whether to keep your files or remove them, and then reinstalls Windows. This tutorial will show you how to create or download a Reset this PC shortcut in Windows...
Tutorials
Customization Create Settings shortcut in Windows 10
How to Create a Settings shortcut in Windows 10 Most of the settings you'll want to change in Windows 10 are in Settings. Settings is organized into the separate System, Devices, Network & Internet, Personalization, Apps, Accounts, Time &...
Tutorials
Customization Create This PC Shortcut in Windows 10
How to Create a This PC Shortcut in Windows 10 My Computer was changed to This PC in Windows 8.1 and Windows RT 8.1. You would open File Explorer to view This PC. In Windows 10, File Explorer now opens to Quick access by default instead of...
Tutorials
Solved want to create a shortcut for ' create restore point'
want to create a shortcut for ' create restore point'. managed to find the ' use a restore point file' but this only allows restoration from a restore point not. relation of one. i know there a few ways to do this, but want to put a link on my...
Backup and Restore
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 11:11.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums