Elevated Program Shortcut without UAC Prompt - Create

How to Create an Elevated Program Shortcut without a UAC Prompt in Windows


   Information
This will show you how to create an elevated "Run as administrator" shortcut of any installed program using Task Scheduler so that it will not give you a UAC prompt for permission when you start it while still having UAC turned on in Vista, Windows 7, and Windows 8.

In the tutorial, you will first create a new task, then a new shortcut to run the task. Afterwards, how to change the icon of the shortcut.

   Note
Special thanks to OEM for pointing this out, and the previous Vista version by DMEX.

   Warning


  • This shortcut and task can only be created and work while logged in as an administrator account.
  • This shortcut will not work in a standard user account.



Here's How:
1. Press the Windows + R keys to open the Run dialog, type taskschd.msc, and press Enter.
NOTE: This will open Task Scheduler. This file is located at:
C:\Windows\system32\taskschd.msc.

2. While having Task Scheduler Library selected in the left pane, click/tap on Create task in the far right pane. (see screenshot below)
Step1.jpg
3. Under the General tab, type in the "Name" of the program you want to create this shortcut for. (see screenshot below)
NOTE: This will be the name of the task. As an example, I will use CCleaner for that program. Make note of this name, you will need it later in step 12 and 14 below.
Step2.jpg
4. Check the Run with highest privileges box. (See screenshot below)
Step3.jpg
5. Click/tap on the Configure for drop down box to open it, and select Windows® 7, Windows Server™ 2008 R2 or the Windows you are currently in. (see screenshot above and below)
NOTE: This is like compatibility mode. If the program does not support running in Windows 7 normally, then you can select the OS that is does support running in instead to have it run in compatibility mode as if it was running in that OS instead of Windows 7.
Drop_Down_Box.jpg
6. Click/tap on the Actions tab, then on the New button. (see screenshot below)
Step4.jpg
7. In the Program/script: box in the Actions tab, copy and paste the path below. (see screenshot below step 9)
NOTE: Thank you to chillz for the updated steps 7 and 8.
%windir%\System32\cmd.exe
8. In the Add arguments (optional): box in the Actions tab, type in the argument below. (see screenshot below step 9)

NOTE: Substitute Task Name in the argument below with the name you entered in step 3 (ex: CCleaner) within quotes, and substitute Full Path of Program in the argument below with the actual full path of the program's .exe file within quote.
/c start "Task Name" "Full Path of Program"


For example:

Code:
/c start "CCleaner" "C:\Program Files\CCleaner\CCleaner64.exe"
9. Click/tap on OK. (see screenshot below)
step7.jpg
10. Click/tap on the Conditions tab, and uncheck the Stop if the computer switches to battery power box first, then uncheck the Start the task only if the computer is on AC power box. (see screenshots below)
NOTE: This step is mostly for laptops, so that you will be able to run the program when the laptop is running on battery power.
step8.jpg

Conditions.jpg

11. Click/tap on OK. (See screenshots above)

12. You will now see your new task created with the name (ex: CCleaner) you gave it in step 3. Close Task Scheduler. (see screenshot below)
Step9.jpg
13. Right click or press and hold on an empty area of your desktop, then click/tap on New and Shortcut.

14. Type in the target below for the location field, then click/tap on the Next button. (see screenshot below)
NOTE: Subsitute task-name in the target with the name (ex: CCleaner) within quotes that you used in step 3.
schtasks /run /tn "task-name"

For example: For my task name CCleaner I used from step 3, I would type:
schtasks /run /tn "CCleaner"
Step10.jpg
15. Type in a name you want for the shortcut (ex: CCleaner), then click/tap on the Finish button. (see screenshot below)
Step11.jpg
16. Right click on the new shortcut (ex: CCleaner) on the desktop, then click/tap on Properties.

17. Click/tap on the Shortcut tab, and on the Change Icon button. (see screenshot below)
Step12.jpg
18. Click/tap on OK. (see screenshot below)
Step13.jpg
19. Click/tap on the Browse button. (see screenshot below)
Step14.jpg
20. Navigate to the .exe file of the program that you have created this shortcut with, select it, and click/tap on Open. (see screenshot below)
NOTE: If you have a icon of your own that you would prefer to use instead, then navigate to where you have that icon saved at instead.
Step15.jpg
21. Select the icon you want for the shortcut, then click/tap on OK. (see screenshot below)
Step16.jpg
22. Click/tap on OK. (see screenshot below)
Step17.jpg
23. You can now use this elevated shortcut to run at startup in your "Startup" folder, run at startup as a task, Pin to Start Menu, Pin to Taskbar, assign a keyboard shortcut, or move to where you like for easy use.

24. When you run this new elevated shortcut, you will now no longer have to click/tap on YES to approve the UAC prompt to allow the program run as administrator.



   Tip
To Undo and Remove this Task:
  • While having Task Scheduler Library selected in the left pane, right click on the task in the right pane that you created in step 12, then click on Delete and Yes to approve.
  • Delete the shortcut.
That's it,
Shawn




 
Last edited:
Hello Kimsland, and welcome to Seven Forums.

Yes, DMEX and I work together alot on some things. He has been noted for pointing this out. :)

That's pretty scary that it would be that easy for malware to bypass UAC with a script like that though.

I hope that you will be able to get Windows 7 soon as well.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
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
True, but I suspect Windows 8 may be a few years off for it.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
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
Wow! how in the h-ll did you figure that procedure out!

You'd think that Microsoft would just provide a switch in the programs' properties or in program compatibility panel to just bypass UAC.

In any case, i don't think that would work in my case since when the program installs, it sets itself up to automatically run after account login. I would have to substitute the executable for the shortcut in the registry somewhere i think.

I guess i could delete the entry in the registry and then place the shortcut into the account startup folder.

Now that i think about it, wouldn't it easier just to elevate the programs' priority in the registry?
 

My Computer

Computer Manufacturer/Model Number
Custom Built
OS
Windows 7
CPU
AMD
Motherboard
Biostar
Hello Nelson, and welcome to Seven Forums.

You might be able to elevate the program in the registry, but it will still not run at startup without getting a UAC approval pop-up unless it's a task like in this tutorial instead. :(
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
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
@Brink

Is there a way to get the shortcut I made to allow me to double-click a music file and have it open Winamp that way without asking for the UAC? The shortcut opens Winamp fine if I double-click on the new shortcut, but if I try to associate the mp3 files with it, it opens the command prompt box for a second, and then nothing opens.
 

My Computer

OS
Windows 7 Home Premium
CPU
2.4 Ghtz
Memory
4 GB
Monitor(s) Displays
22" Widescreen LCD Flatscreen
Hard Drives
C: = 80 GB
D: = 160 GB
Hello BrainFreeze,

Not that I'm aware of. :(
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
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

My Computer

OS
Windows 7 Home Premium
CPU
2.4 Ghtz
Memory
4 GB
Monitor(s) Displays
22" Widescreen LCD Flatscreen
Hard Drives
C: = 80 GB
D: = 160 GB
@Brink

Is there a way to get the shortcut I made to allow me to double-click a music file and have it open Winamp that way without asking for the UAC? The shortcut opens Winamp fine if I double-click on the new shortcut, but if I try to associate the mp3 files with it, it opens the command prompt box for a second, and then nothing opens.

That's odd. Do you have WinAmp set as your default media player?

Also, if you want to right click a music file, and have WinAmp open it, you can add a shortcut to the right click context menu for that function.
 

My Computer

Computer Manufacturer/Model Number
NVIDIA
OS
Windows 7 Enterprise x64
CPU
AMD Athlon 64X2 Dual Core 3800+
Motherboard
GeForce 6100-M9
Memory
OCZ Platinum Dual Channel - 4x1Gb
Graphics Card(s)
NVIDIA GeForce 8800 GT PCI Express x16
Sound Card
Creative Audigy Sound Blaster Extreme PCI
Monitor(s) Displays
Compaq 7500
Screen Resolution
1024x768
Hard Drives
C: Seagate ST3250318AS SataII - 250Gb

D: Seagate ST3500418AS SataII - 500Gb
PSU
OCZ 600w Dual 12v Rails
Case
Thermaltake
Cooling
OCZ Heatsinks, Fans, and Thermal Paste on CPU & Chipsets
Keyboard
Logitech
Mouse
Radio Shack PS2
Internet Speed
Cable
Other Info
Dual Pioneer DVD/RW optical drives. LG CD/RW optical drive.
That's odd. Do you have WinAmp set as your default media player?

Also, if you want to right click a music file, and have WinAmp open it, you can add a shortcut to the right click context menu for that function.

Yep. I have Winamp set as my default for all of my audio files. Do you know of a way to get it to let me double-click on the mp3 where it opens it using that UAC shortcut? :huh: :D
 

My Computer

OS
Windows 7 Home Premium
CPU
2.4 Ghtz
Memory
4 GB
Monitor(s) Displays
22" Widescreen LCD Flatscreen
Hard Drives
C: = 80 GB
D: = 160 GB
Yep. I have Winamp set as my default for all of my audio files. Do you know of a way to get it to let me double-click on the mp3 where it opens it using that UAC shortcut? :huh: :D
Not right off hand. I've always used WMP as my default player. I'm sure there's a way to do it though. You'll just have to navigate around and find the proper setting. If you already have WinAmp set as your default player, I'm surprised you get a UAC prompt. Have you already gone into the WinAmp settings? Make sure your MP3 file settings have WinAmp as the default program to open them.
 

My Computer

Computer Manufacturer/Model Number
NVIDIA
OS
Windows 7 Enterprise x64
CPU
AMD Athlon 64X2 Dual Core 3800+
Motherboard
GeForce 6100-M9
Memory
OCZ Platinum Dual Channel - 4x1Gb
Graphics Card(s)
NVIDIA GeForce 8800 GT PCI Express x16
Sound Card
Creative Audigy Sound Blaster Extreme PCI
Monitor(s) Displays
Compaq 7500
Screen Resolution
1024x768
Hard Drives
C: Seagate ST3250318AS SataII - 250Gb

D: Seagate ST3500418AS SataII - 500Gb
PSU
OCZ 600w Dual 12v Rails
Case
Thermaltake
Cooling
OCZ Heatsinks, Fans, and Thermal Paste on CPU & Chipsets
Keyboard
Logitech
Mouse
Radio Shack PS2
Internet Speed
Cable
Other Info
Dual Pioneer DVD/RW optical drives. LG CD/RW optical drive.
Not right off hand. I've always used WMP as my default player. I'm sure there's a way to do it though. You'll just have to navigate around and find the proper setting. If you already have WinAmp set as your default player, I'm surprised you get a UAC prompt. Have you already gone into the WinAmp settings? Make sure your MP3 file settings have WinAmp as the default program to open them.

LOL I've checked that info numerous times, but it's set as default.
 

My Computer

OS
Windows 7 Home Premium
CPU
2.4 Ghtz
Memory
4 GB
Monitor(s) Displays
22" Widescreen LCD Flatscreen
Hard Drives
C: = 80 GB
D: = 160 GB
Thanks.. it works.
but i have a question.
i have a program with a UAC prompt too, but a little bit different.
the UAC propmt come out with yellow colour. and at the shortcut, there was a shield like the shield at parental control's shield.
i tried using this way, but cant works.
an error message come out.
"Could not start War3.exe! Make sure the loader is in your Warcraft install directory"
Can u help me??
 

My Computer

OS
Windows 7
CPU
Core i5 2,26Ghz
Memory
500GB
Graphics Card(s)
AMD Ati Radeon HD 5470
Hello Hau,

Does the game run normally? If yes, then double check to make sure that you are using the same correct EXE file or shortcut that you normally use to run the game with.

Hope this helps,
Shawn
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
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
yes... i can play it with the EXE file. but there is an UAC prompt with a little bit different, like i said before.
when i use the shortcut, i cannt be run.
any help?
 

My Computer

OS
Windows 7
CPU
Core i5 2,26Ghz
Memory
500GB
Graphics Card(s)
AMD Ati Radeon HD 5470
Hau,

You may not be able to with that program/game. :(
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
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
so there is no way for game?
 

My Computer

OS
Windows 7
CPU
Core i5 2,26Ghz
Memory
500GB
Graphics Card(s)
AMD Ati Radeon HD 5470
For that specific game it seems not to be. :(
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
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
Hey guys, I run MSI Afterburner to control my GFX card fan speed. It needs to run right at startup, but I can't get it to elevate so I don't get the UAC prompt every time I fire up my rig. Has anyone successfully elevated MSI Afterburner? If so, how did you do it...specifically?

A shortcut isn't much help because I need it to elevate automatically, right at startup. It's a real pain in the ass having to click on the UAC every single time I fire up my rig.
 

My Computer

Computer Manufacturer/Model Number
NVIDIA
OS
Windows 7 Enterprise x64
CPU
AMD Athlon 64X2 Dual Core 3800+
Motherboard
GeForce 6100-M9
Memory
OCZ Platinum Dual Channel - 4x1Gb
Graphics Card(s)
NVIDIA GeForce 8800 GT PCI Express x16
Sound Card
Creative Audigy Sound Blaster Extreme PCI
Monitor(s) Displays
Compaq 7500
Screen Resolution
1024x768
Hard Drives
C: Seagate ST3250318AS SataII - 250Gb

D: Seagate ST3500418AS SataII - 500Gb
PSU
OCZ 600w Dual 12v Rails
Case
Thermaltake
Cooling
OCZ Heatsinks, Fans, and Thermal Paste on CPU & Chipsets
Keyboard
Logitech
Mouse
Radio Shack PS2
Internet Speed
Cable
Other Info
Dual Pioneer DVD/RW optical drives. LG CD/RW optical drive.

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
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
Back
Top