Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Elevated Program Shortcut without UAC Prompt - Create

18 Apr 2014   #400
jonnyhotchkiss

Windows 7 Ultimate 64bit
 
 

You've checked (taskmanager) that utorrent isn't still running?

I've seen this message a lot, when I forget to set the "close utorrent" option (default action on close window is minimise to tray)


My System SpecsSystem Spec
.
19 Apr 2014   #401
Arbitrage

Windows 8.1 Pro x64 with Media Center
 
 

Quote   Quote: Originally Posted by jonnyhotchkiss View Post
You've checked (taskmanager) that utorrent isn't still running?

I've seen this message a lot, when I forget to set the "close utorrent" option (default action on close window is minimise to tray)
uTorrent is running because I have started it before, when I added a new torrent a few hours back. But when I try to add another torrent, I get this error.
My System SpecsSystem Spec
22 Apr 2014   #402
jsmain

Win 7 x64 and Win 8.1 update x64
 
 
AutoHotkey Arguments

How can I pass an argument into this....
I use alot of AutoHotKey scripts, and have elevated my AutoHotKey.exe file, but when I drop a script onto the elevated shortcut, nothing happens. I need to be able to run all my scripts this way if possible. I'd rather not have to elevate each and every script I create and test.

Any suggestions on passing arguments such as the script to run, through tasksched to my elevated AutoHotKey.exe?

The scripts run if I drop them on the normal Autohotkey shortcut, although with the UAC interupting, I would like to be able to do this without the UAC interupting.

Thanks for any assistance you can provide.
My System SpecsSystem Spec
22 Apr 2014   #403
Brink

64-bit Windows 10 Pro
 
 

Hello jsmain, and welcome to Seven Forums.

You might be able to use this method below instead for what you want using the built-in Administrator's rights to not get the UAC prompt.

You could skip steps 9-16 if you like. Those steps were just designed to prevent a standard user from being able to change the target of the shortcut and run whatever they wanted with the built-in Administrator's rights.

Elevated Program Shortcut - Create for Standard User

Hope this helps,
Shawn
My System SpecsSystem Spec
.

23 Apr 2014   #404
jsmain

Win 7 x64 and Win 8.1 update x64
 
 

Thanks Brink!

I am uncertain however how that solution would be any better.

This solution works, but needs to be able to accept arguments.

My case is this....
I use an xkeys controller for example, and assign my scripts to each key. Currently, each key launches a script that gets run as admin, and throws a UAC prompt to accept the action. That is unacceptable. If I use the process provided in this thread, I can elevate the scripts to run without the UAC which is acceptable, but I need to do this with maybe hundreds of scripts, of which again, is unacceptable.

I have elevated Autohotkey.exe itself which is necessary to run the raw scripts, but then I need a way for it to accept the script as an argument, so any script run will be done so using the elevated Autohotkey.exe shortcut.

Is that possible?
My System SpecsSystem Spec
23 Apr 2014   #405
Brink

64-bit Windows 10 Pro
 
 

I'm sure it may be possible, but I just don't know how either.
My System SpecsSystem Spec
23 Apr 2014   #406
jsmain

Win 7 x64 and Win 8.1 update x64
 
 

Bugger!

Thanks anyway.

Perhaps someone else?
I'm looking into it as well, so if I do find an answer, I'll be sure to report back.
My System SpecsSystem Spec
09 May 2014   #407
EdPell

win 7 Home Premium
 
 
Use in a Context Menu

Hi Brink ...

First, thanks for the great tutorial.

I just purchased a new PC with Win 7 Home Premium and found the UAC process a bit tedious for programs I run frequently, for example, Search Everything. I followed your tutorial and it's working fine.

However, more often than not, I want to run it from a context menu. Way back in post #'s 10 and 11, I *think* Lebon14 also wanted to do this and you responded with a registry add like this:

[HKEY_CLASSES_ROOT\*\shell\Every Search]
[HKEY_CLASSES_ROOT\*\shell\Every Search\command]
@=\C:\\Users\\Ed\\Desktop\\Every Search.lnk\ \%1\"

but obviously with the program (Notepad++) he was concerned with.

My question - if I stuck those three lines in a text editor such as Notepad and changed the file extension to .reg, is that sufficient to correctly update the registry?

Thanks for your help
EdP
My System SpecsSystem Spec
09 May 2014   #408
Brink

64-bit Windows 10 Pro
 
 

Hello Ed,

I'm not sure how it will work or not with that program, but you could create the .reg file with this below. You just needed to add the top line for registry files in addition to changing the file extension to .reg.

Code:
Windows Registry Editor Version 5.00
 
[HKEY_CLASSES_ROOT\*\shell\Every Search]
[HKEY_CLASSES_ROOT\*\shell\Every Search\command]
@=”\”C:\\Users\\Ed\\Desktop\\Every Search.lnk\” \”%1\”"
My System SpecsSystem Spec
11 May 2014   #409
jonnyhotchkiss

Windows 7 Ultimate 64bit
 
 

Hi, I just mounted the Software hive (TimSW) from a build with Everything installed on... In "HKEY_LOCAL_MACHINE\TimSW\Classes\Folder\shell\Search Everything..." (ie normally HKLM\Software\Classes\folder\shell\Everything) the command key has a string (no name) with

"C:\Program Files\Everything\Everything.exe" -path "%1"

This might work with portable also.. Personally, I'd go for the folder context over desktop context, where the -path parameter is used to refine the "search domain"...

Hope this helps...

One more thing: if you right click on your .lnk file and select open file location, you should get the location of the (everything.exe) target of your shortcut. It's good practice to reference this directly in the reg (what if your shortcut's deleted, or moved?) alt+d and ctrl+c will get you your address (from address bar,to clipboard
My System SpecsSystem Spec
Reply

 Elevated Program Shortcut without UAC Prompt - Create




Thread Tools




Similar help and support threads
Thread Forum
Elevated Program Shortcut - Create for Standard User
How to Create an Elevated Program Shortcut Any User is able to Run in Vista, Windows 7, and Windows 8 This will show you how to create an elevated program shortcut that allows any user (ex: Standard user) to be able to run a program that runs as administrator without being prompted to enter the...
Tutorials
Elevated Command Prompt Shortcut
How to Create an "Elevated Command Prompt" Shortcut in Windows 7 and Windows 8 This tutorial will show you how to create a shortcut that will open an elevated command prompt with administrator rights in Windows 7 and Windows 8. When you use the elevated command prompt shortcut, you may be...
Tutorials
Task Manager - Create Elevated Shortcut
How to Create an Elevated Task Manager Shortcut in Windows 7 This will show you how to create a elevated Task Manager shortcut that will "run as an administrator" in Windows 7 when opened. It will open as if you clicked Show processes from all users in the default Task Manager. You will...
Tutorials
Setting Priority with "Elevated Shortcut without UAC Prompt Tutorial"
I used the info in Elevated Program Shortcut without UAC Prompt Tutorial and it soon dawned on me that the applications seemed to be taking a long time to run. Than the penny dropped - Scheduled Tasks run at priority 7 by default (which is lower than directly run applications typically run at)...
General Discussion
Creating an Elevated Program Shortcut for Search Everything Program.
I`ve done this successfully for SpeedFan, but I`m having a problem with doing the same for the Search Everything program. I`ve been through the tutorial steps several times now, the task executes successfully,( I checked it with command prompt box) but nothing happens. /c start "SpeedFan"...
Software
Question on "How to Create a Elevated Program Shortcut ..."
The solution (Shawn) in the thread How to Create a Elevated Program Shortcut without a UAC Prompt (https://www.sevenforums.com/tutorials/11949-elevated-program-shortcut-without-uac-prompt-create.html) ends with 24. When you run this new elevated shortcut, you will now no longer have...
System Security


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 00:52.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App