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

03 Jun 2009   #319
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 
Elevated Program Shortcut without UAC Prompt - Create

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


...


My System SpecsSystem Spec
01 Jun 2012   #320
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

Hello Willy, and welcome to Seven Forums.

See if you may be able to use this tutorial to run the shortcut in the tutorial below for this instead.

Task Manager - Create Elevated Shortcut

Be sure to do this option below at step 23 for the create task.

Task - Create to Run a Program at Startup and Log On

Hope this helps,
Shawn


My System SpecsSystem Spec
01 Jun 2012   #321
WildWilly

Windows 7 Enterprise 64-bit
 
 

Quote   Quote: Originally Posted by Brink View Post
Hello Willy, and welcome to Seven Forums.
Thank you, Brink . . . or Shawn . . . or . . . Mr. Shawn Brink. A man of many names. I have been in this web site every day for the past week. It's like a university course in Windows7. I am most grateful.

Quote   Quote: Originally Posted by Brink View Post
See if you may be able to use this tutorial to run the shortcut in the tutorial below for this instead.

Task Manager - Create Elevated Shortcut

Be sure to do this option below at step 23 for the create task.
Step 23? The above tutorial stops at step 7 and the one you refer to below stops at step 21. No matter because . . .

This is exactly the tutorial I followed that resulted in my Shortcut for Task Manager that now resides in my Startup folder. Despite the fact that it doesn't actually launch my Shortcut during system startup, it is a convenient item I will leave there because if, for example, I fat-finger something & manage to close Task Manager while I'm doing stuff, this Shortcut does let me relaunch Task Manager in Administrator mode without the UAC prompt. So it wasn't all a lost effort.

Quote   Quote: Originally Posted by Brink View Post
Aha! Hard to believe that in all the dozens of times I was in Task Scheduler to try to solve this that I never noticed that the Task Scheduler Library item in the left pane was a directory structure with cascading children under it. I'm such an astute observer. Anyway, after creating the folder as your tutorial directs, I didn't see my folder on the left at first. And that's when I finally twigged to the little triangular bullet thingy like what you see in Windows Explorer.

All together now . . . DUH!!!!!

So I cascaded that all out & discovered this is where all those other mysterious things running in my system all the time come from. Like I said, university course.

And the folder I just created according to your instructions was there. From that point on, I was duplicating the steps I had already performed several times by following the tutorial at the head of this thread.

The step for executing schtasks /run /tn task-name didn't do anything observable at all. I didn't get any errors from this procedure but it also didn't do what I wanted.

Quote   Quote: Originally Posted by Brink View Post
Hope this helps,
Shawn
Hope? Beyond hope, my friend. THIS WORKED!! Blessings upon thee, O Jedi Master. The only difference is that when my created item in the Task Scheduler is just another item in the Task Scheduler Library, it doesn't launch at system startup. When the exact same item is inside a Folder inside the Task Scheduler Library, it works like a champ. I note that the first reply post in this tutorial is dated June 2009, three years ago. Perhaps that procedure worked on the Windows 7 current at the time, but the system has changed in the interim & the advice is no longer valid. I am wholly unqualified to answer that question.

I suppose that now, if there's anything else I want to launch automatically at system startup, and it doesn't work from the plain vanilla Startup folder, I can just add another task in this folder in the Task Scheduler and it should do the trick.

By the way, your instructions talk about doing a search for taskschd.msc to get to the Task Scheduler. On my system, I just navigate Start Menu -> All Programs -> System Tools, and it's there. I admit I have shuffled things around in my Start Menu to make them a little less cluttered & more organized so maybe mileage varies on this point. But I'm pretty sure there was already a Task Scheduler item somewhere in my Start Menu from the outset.

So. Bottom line. Another one bites the dust. Thank you thank you thank you mille fois merci.
My System SpecsSystem Spec
01 Jun 2012   #322
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

That's great news Willy. You're most welcome.

By default, anything that runs elevated (run as administrator) will not run at startup if it's just simply placed in the "Startup" folder. Only through Task Scheduler will it run elevated at startup instead.
My System SpecsSystem Spec
02 Jul 2012   #323
JerometheGiraff

Windows 8.1 Pro
 
 

Is this tutorial in PDF format, for offline viewing ?
My System SpecsSystem Spec
.


02 Jul 2012   #324
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

Hello JerometheGiraff,

Sorry, but no. However, you could click on File and Save as in IE9 to then save the tutorial page as a webpage, complete .htm file.

Hope this helps,
Shawn
My System SpecsSystem Spec
28 Jul 2012   #325
IMAyNeed

Windows 7 Ultimate 64-bit
 
 

I can run the tasks I created from the Task Scheduler(In the task Scheduler, right click, run), but not from the Shortcuts I created. What could the problem be?

For example; this shows in the target area, same as the others except the task name, but the programs doesn't start when I try to run them from the shortcuts.

Target: C:\Windows\System32\schtasks.exe /run /tn "Better File Rename"

Start in: C:\Windows\system32
My System SpecsSystem Spec
28 Jul 2012   #326
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

Hello IMAyNeed,

There may have been a mistake made in one of the steps. The most critical part in the steps is to make sure that the task name used in step 3 is used in step 8 and with the shortcut's target at step 14. Could you post screenshots showing what you entered in Task Scheduler to see if something may stand out? I'll be happy to look through them to help double check.
My System SpecsSystem Spec
28 Jul 2012   #327
IMAyNeed

Windows 7 Ultimate 64-bit
 
 

The problem was at the beginning.
In my task scheduler library, there were already like 40 tasks (OS and Software auto created, not by me); so, I created a folder inside the library to put my tasks in there so that I wouldn't confuse my tasks with the computers. I haven't thought of this subfolder thing before.

I changed the target in the shortcut to C:\Windows\System32\schtasks.exe /run /tn "\Elevated Tasks\Better File Rename"

and it worked.

So, the problem was the tasks being in a subfolder.

Thank you for the tutorial by the way.
My System SpecsSystem Spec
28 Jul 2012   #328
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

IMAyNeed,

The tutorial will not work with the tasks in a subfolder of Task Scheduler Library instead as it's written. I just didn't include subfolders to make the tutorial universal and easier. That's all.

However, for the shortcut to work using a subfolder, you would just need to use the location below instead at step 14.

schtasks /run /tn "subfolder name\task name"


For example: If used a subfolder named CCleaner under "Task Scheduler Library" for the task CCleaner Test (step 3), I would type:

schtasks /run /tn "CCleaner\CCleaner Test"
My System SpecsSystem Spec
28 Jul 2012   #329
IMAyNeed

Windows 7 Ultimate 64-bit
 
 

Yes, I got that right after I typed my reply. Thanks again.
My System SpecsSystem Spec
Comment

 Elevated Program Shortcut without UAC Prompt - Create




Tutorial Tools




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 01:06 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33