Solved Question on "How to Create a Elevated Program Shortcut ..."

Hans L

New member
Member
VIP
Local time
4:56 PM
Messages
175
The solution (Shawn) in the thread

How to Create a Elevated Program Shortcut without a UAC Prompt

(http://www.sevenforums.com/tutorials/11949-elevated-program-shortcut-without-uac-prompt-create.html)

ends with

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

Where the heck do you put the shortcut?

I assumed it had to run before the program for which I created the shortcut run (at startup), so I put the shortcut in Start – All programs – Startup.

However, it did not work. Now, my program was not in "Startup", neither in "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup". I used to know where to look next, but I have forgotten, so I do not know where my program start up on computer startup, only that my program *may* start before the shortcut (and then, the whole thing would fail).

So, I would be most obliged if someone could help me out. Where do I place the shortcut for this to work? Thanks!

Hans L


[/FONT]
 

My Computer

Computer Manufacturer/Model Number
BIOS American MegaTrend 1238
OS
Windows 7 Ultimate
CPU
Intel Core Duo E6600 @ 2.40 GHz
Motherboard
ASUS P5B-Deluxe
Memory
3 GB
Graphics Card(s)
Nvidia eVGA GeForce 8600 GTS & 7600 GT
Monitor(s) Displays
Iiyama PLE431S/PLH431S

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Bruce ... somewhere in his 40's
OS
Windows 7 Ultimate 32bit SP1
CPU
Intel(R) Core(TM)2 Quad CPU @ 2.40GHz, 2400 MHz
Motherboard
INTEL/D975XBX2
Memory
4 GB
Graphics Card(s)
ATI Radeon HD 2600 Pro
Monitor(s) Displays
Samsung SyncMaster 914v
Screen Resolution
1280 x 1024
Hard Drives
2/500GB each ... ST3500630AS ATA Device.
One is not connected
PSU
Rocketfish 700 W
Case
G.Skill Gigabyte Chassis
Keyboard
Standard PS/2 Keyboard
Mouse
Microsoft PS/2 Mouse
Internet Speed
DSL
Antivirus
Avira Internet Security
Browser
IE 11
Other Info
ATI HDMI Audio

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
Try Mike Lin's startup control ...I have it, it works on Windows 7
Still Useful in Vista: Startup Control Panel - How-To Geek
Well, your post helped me find out that my program runs from at startup:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run

So, I got the brilliant idea of setting this program not to run at startup (which would delete this key in the Registry), but to put it in either [My name] Startup or All Users Startup, and put the UAC shortcut in the Startup that did *not* have the program startup.

Well, could not check if that works, because my program does not start up in either Startup. What a bummer. Don't know if it has anything to do with the fact that I have 64-bit Win7 and that this program (called "Everything") is installed as a 64-bit program.

I'll continue to try, and will also look at Shawns post that just came in.

Regards,

Hans L
 

My Computer

Computer Manufacturer/Model Number
BIOS American MegaTrend 1238
OS
Windows 7 Ultimate
CPU
Intel Core Duo E6600 @ 2.40 GHz
Motherboard
ASUS P5B-Deluxe
Memory
3 GB
Graphics Card(s)
Nvidia eVGA GeForce 8600 GTS & 7600 GT
Monitor(s) Displays
Iiyama PLE431S/PLH431S
Hello Hans,

You can run at startup as a task, Pin to Start Menu, Pin to Taskbar this shortcut, or move to where you like for easy use.

Hope this helps,
Shawn
Hello Shawn.

I am scratching my head. First, if I uncheck "Start at computer startup" in Everything (my program), and put a shortcut for it in any Startup folder, the program does not start at computer startup. It only starts up if I have "Start at computer startup" checked, and then, the UAC kicks in and asks me if I want to allow Everything to change ... etc.If I say "Yes", everything is fine.

So, what should I do????

My inclination is to go back to

"How to Create a Elevated Program Shortcut without a UAC Prompt"

http://www.sevenforums.com/tutorials/11949-elevated-program-shortcut-without-uac-prompt-create.html

and recreate. If I do, what would you suggest I do after that?

Thanks very much in advance.

Hans L
 

My Computer

Computer Manufacturer/Model Number
BIOS American MegaTrend 1238
OS
Windows 7 Ultimate
CPU
Intel Core Duo E6600 @ 2.40 GHz
Motherboard
ASUS P5B-Deluxe
Memory
3 GB
Graphics Card(s)
Nvidia eVGA GeForce 8600 GTS & 7600 GT
Monitor(s) Displays
Iiyama PLE431S/PLH431S
Hans,

I would recommend to create the shortut as outlined in this tutorial below first.
Next, use this tutorial below, to create a separate task to run the shortcut created from above "At startup" and "At Log on". Remember that the shortcut must remain at the location you saved it at for the startup task to continue to work.
 

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
Okay, Shawn, I will do. Thank you so much!

Oh, by the way, do I have to do something to undo the shortcut that I did create? (Sorry having to be a pain!)

Hans L
 

My Computer

Computer Manufacturer/Model Number
BIOS American MegaTrend 1238
OS
Windows 7 Ultimate
CPU
Intel Core Duo E6600 @ 2.40 GHz
Motherboard
ASUS P5B-Deluxe
Memory
3 GB
Graphics Card(s)
Nvidia eVGA GeForce 8600 GTS & 7600 GT
Monitor(s) Displays
Iiyama PLE431S/PLH431S
If you created the shortcut just as in the tutorial, then nope. :)
 

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

Computer Manufacturer/Model Number
BIOS American MegaTrend 1238
OS
Windows 7 Ultimate
CPU
Intel Core Duo E6600 @ 2.40 GHz
Motherboard
ASUS P5B-Deluxe
Memory
3 GB
Graphics Card(s)
Nvidia eVGA GeForce 8600 GTS & 7600 GT
Monitor(s) Displays
Iiyama PLE431S/PLH431S

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
Okay. Thanks,

Hans L
 

My Computer

Computer Manufacturer/Model Number
BIOS American MegaTrend 1238
OS
Windows 7 Ultimate
CPU
Intel Core Duo E6600 @ 2.40 GHz
Motherboard
ASUS P5B-Deluxe
Memory
3 GB
Graphics Card(s)
Nvidia eVGA GeForce 8600 GTS & 7600 GT
Monitor(s) Displays
Iiyama PLE431S/PLH431S
You're most welcome Hans. Please let us know how it went. :)
 

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
Shawn, I followed your tutorials to a T. It did not work.

When I did

15. Navigate to and select the program's EXE file or shortcut to the EXE file, then click on Open. (see screenshot below)
NOTE: Remember that a standard user account cannot run a elevated program at startup or log on. See NOTE at top of tutorial for more information.

under

How to Create a Task to Run a Program at Startup and Log On in Windows 7[FONT=&quot][/FONT]​

I put in the shortcut (not the .exe file name), and it showed, under "Program/Script", as:

C:\Windows\System32\schtasks.exe

Is that correct?

--------------

This program, Everything, is a program that creates a database of file names, and then updates this database on the fly when files are added and deleted, or file names are changed. Could this be a problem?


When the UAC windows appears, at computer start-up, asking
"Do you want to ...", the program location is shown as

"C:\Program Files (x86)\Everything\Everything.exe" -startup

Does this interfere with the shortcut?

This program has its start-up info in the registry.

Any tips would be appreciated.

Regards,

Hans L
 

My Computer

Computer Manufacturer/Model Number
BIOS American MegaTrend 1238
OS
Windows 7 Ultimate
CPU
Intel Core Duo E6600 @ 2.40 GHz
Motherboard
ASUS P5B-Deluxe
Memory
3 GB
Graphics Card(s)
Nvidia eVGA GeForce 8600 GTS & 7600 GT
Monitor(s) Displays
Iiyama PLE431S/PLH431S
Hans,

Just to be sure if everything, be sure that you have removed all startup entries for the program in METHOD FOUR of the tutorial below.

http://www.sevenforums.com/tutorials/1401-startup-programs-change.html


Next, take the elevated task shortcut that you created in the tutorial below and place it somewhere like in your My Documents folder (or where you like).

http://www.sevenforums.com/tutorials/11949-elevated-program-shortcut-without-uac-prompt-create.html


Now, create a startup/log on task with the elevated task shortcut at it's new location using the tutorial below.

http://www.sevenforums.com/tutorials/67503-task-create-run-program-startup-log.html


Remember, that this will only run elevated at startup without a UAC prompt for a administrator's account. It will give a UAC prompt for a standard user.

Please let me know where in the above things went wrong for you, and I'll try to help. :)
 

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
Shawn, I did all of the above.

When I came to this:

http://www.sevenforums.com/attachme...ask-create-run-program-startup-log-step10.jpg

and I highlighted this:

C:\ZZZ - UAC Shortcuts\Everything_UAC.lnk

the darn scheduler (again) put in this:

C:\Windows\System32\schtasks.exe

So, I eleted it and put in

"C:\ZZZ - UAC Shortcuts\Everything_UAC.lnk"

Again, it did not work.

You know what, Shawn, I just remember that I much earlier tried to put a shortcut for Everything.exe in [Username] Startup and in All Users Startup, and the program did not start at computer startup. It seems that Everything does not start unless it is in

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Run

That would explain why methods with a shortcut do not work.

What do you think?

Regards,

Hans L
 

My Computer

Computer Manufacturer/Model Number
BIOS American MegaTrend 1238
OS
Windows 7 Ultimate
CPU
Intel Core Duo E6600 @ 2.40 GHz
Motherboard
ASUS P5B-Deluxe
Memory
3 GB
Graphics Card(s)
Nvidia eVGA GeForce 8600 GTS & 7600 GT
Monitor(s) Displays
Iiyama PLE431S/PLH431S
What program is this for?

If I'm able to, I'll play with it to see if I may be able figure out what the issue may 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

My Computer

Computer Manufacturer/Model Number
BIOS American MegaTrend 1238
OS
Windows 7 Ultimate
CPU
Intel Core Duo E6600 @ 2.40 GHz
Motherboard
ASUS P5B-Deluxe
Memory
3 GB
Graphics Card(s)
Nvidia eVGA GeForce 8600 GTS & 7600 GT
Monitor(s) Displays
Iiyama PLE431S/PLH431S
Are you using the EXE or portable download version?

Did you uncheck this option in the program, so that you are only using the startup task shortcut created by you?

Startup-2.jpg
 

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
Hans,

Ok, I figured out what was wrong. I got it working for me now at startup without a UAC prompt. :party:

When you are creating the startup/log on task, you woud need to right click on the elevated task shortcut, click properties, copy that long Target path, then past it in the Program/script box when editing the Action for the startup/log on task instead of just selecting the elevated task shortcut.

See the outline below to help. I numbered it the order of the steps to do.

Test1.jpg

Test-2.jpg

Test3.jpg
 

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
Okay, Shawn, great. I will do it, but it may have to be tomorrow, because I am splitting a hard drive into two, and then, I have one other program that gives me problems.

I'll let you know how it goes.

Regards,

Hans L
 

My Computer

Computer Manufacturer/Model Number
BIOS American MegaTrend 1238
OS
Windows 7 Ultimate
CPU
Intel Core Duo E6600 @ 2.40 GHz
Motherboard
ASUS P5B-Deluxe
Memory
3 GB
Graphics Card(s)
Nvidia eVGA GeForce 8600 GTS & 7600 GT
Monitor(s) Displays
Iiyama PLE431S/PLH431S
Back
Top