General Create Elevated Shortcut without UAC prompt in Windows 11


  • Staff
Elevated_shortcut_banner.png

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 for your account in Windows 10 and Windows 11.

When you open an application file with Run as administrator, you will get a UAC prompt by default 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 using the steps below to run the application as a workaround to do so.


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




Here's How:

1 Open Task Scheduler (taskschd.msc).

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)

create_elevated_shortcut_without_UAC-1.png

3 In the General tab, type a name (ex: "Windows Terminal (Admin)") you want for this task, and type an optional description of the task. (see screenshot below)

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.


create_elevated_shortcut_without_UAC-2.png

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

create_elevated_shortcut_without_UAC-3.png

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

You would select Windows 10 even for Windows 11.


create_elevated_shortcut_without_UAC-4.png

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

create_elevated_shortcut_without_UAC-5.png

7 Type cmd.exe in the Program/script field. (see screenshot below)

This is what is being used to open the elevated shortcut from, so it cannot be changed to anything else.


create_elevated_shortcut_without_UAC-6.png

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"

Substitute Task Name in the command above with the task name (ex: "Windows Terminal (Admin)") 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. If this is for an app included in Windows (ex: "Windows Terminal (Admin)"), then you can just enter the .exe file name (ex: "wt.exe") for the app. If this is for an installed 3rd party app, then you will need to enter the full file path.

For example: /c start "Windows Terminal (Admin)" "wt.exe"


create_elevated_shortcut_without_UAC-7.png

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

create_elevated_shortcut_without_UAC-8.png

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)

create_elevated_shortcut_without_UAC-9.png

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

create_elevated_shortcut_without_UAC-10.png

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"

Substitute Task Name in the command above with the task name (ex: "Windows Terminal (Admin)") you used in step 3 above.

For example: schtasks /run /tn "Windows Terminal (Admin)"


create_elevated_shortcut_without_UAC-11.png

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

create_elevated_shortcut_without_UAC-12.png

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)

create_elevated_shortcut_without_UAC-13.png

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

create_elevated_shortcut_without_UAC-14.png

18 Click/tap on Browse, navigate to and select the application (exe) file 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)

You can use any icon you want for this shortcut.


create_elevated_shortcut_without_UAC-15.png

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

create_elevated_shortcut_without_UAC-16.png

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


That's it,
Shawn Brink


 

Attachments

  • Elevated_shortcut.png
    Elevated_shortcut.png
    7.1 KB · Views: 111
Last edited:
I have a similar problem on Windows 11. python pyautogui run as administrator (no need on Windows 7).

how to fix?

The Tutorial is long and seems I would be lost somewhere.

Did anyone try and got successful? pyautogui run as administrator on Windows 11.
(I did report this one year ago)

Known and Resolved issues for Windows 11 version 22H2

 

My Computer

System One

  • OS
    Windows 7/11
    Computer type
    PC/Desktop
    Manufacturer/Model
    HP/Lenovo/Asus
    CPU
    Intel
    Hard Drives
    NVMe SSD/SATA SSD
The app creates a scheduled task SkipUAC_[Username], which I found cannot be deleted even by TrustedInstaller. Each of your registered commands is saved in one of its registry keys. Anyone who's technical should investigate before using it.

SkipUAC works but in an unconventional manner which may not make security-aware users happy.
Still no update for SkipUAC and the Sordum team love to gaslight or deflect most, if not all concerns about their products. Then again, it's shareware so I suppose we can't expect much from them.
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    Lenovo
    Graphics Card(s)
    NVIDA 1650 Ti
    Monitor(s) Displays
    Lenovo C32q-20
Shawn,

when the shortcut runs, it pops-up two boxes. one is python. another is CMD admin.

Is it possible to obtain python box only? It's noticed that your post below. that hints cmd admin box is unavoidable?

1706492923443.png


Thanks,

I have a similar problem on Windows 11. python pyautogui run as administrator.
 

My Computer

System One

  • OS
    Windows 7/11
    Computer type
    PC/Desktop
    Manufacturer/Model
    HP/Lenovo/Asus
    CPU
    Intel
    Hard Drives
    NVMe SSD/SATA SSD
Shawn,

when the shortcut runs, it pops-up two boxes. one is python. another is CMD admin.

Is it possible to obtain python box only? It's noticed that your post below. that hints cmd admin box is unavoidable?

View attachment 85407

Thanks,

Usually, the CMD is what's used to run the command to run the app as administrator.

I'm not sure if phyton will work with it.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GDDR5X)
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO M.2,
    8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gbps Download and 35 Mbps Upload
    Browser
    Google Chrome
    Antivirus
    Microsoft Defender and Malwarebytes Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Galaxy S23 Plus phone
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    HP Spectre x360 2in1 14-eu0098nr (2024)
    CPU
    Intel Core Ultra 7 155H 4.8 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Graphics card(s)
    Integrated Intel Arc
    Sound Card
    Poly Studio
    Monitor(s) Displays
    14" 2.8K OLED multitouch
    Screen Resolution
    2880 x 1800
    Hard Drives
    2 TB PCIe NVMe M.2 SSD
    Internet Speed
    Intel Wi-Fi 7 BE200 (2x2) and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Windows Defender and Malwarebytes Premium
python works.

I was expecting less pop-up boxes (running pyautogui, the cleaner, the less, the batter. :) )

Thanks,
 

My Computer

System One

  • OS
    Windows 7/11
    Computer type
    PC/Desktop
    Manufacturer/Model
    HP/Lenovo/Asus
    CPU
    Intel
    Hard Drives
    NVMe SSD/SATA SSD

Latest Support Threads

Back
Top Bottom