Sometime good things in certain circumstances will not be suitable for use, like UAC prompts. It's really troubled when you often need to run a particular tool that requires administrator mode in order to run. It will constantly pop up when you are trying to make system changes. Fortunately, I stumbled on a simple hack that you can do to create an administrator mode shortcut that doesn't prompt for UAC. Here, I just want to share my discovery with everyone who reads it.
Note: It is suitable for the Windows 7/Vista users.
We can understand that there are mainly two things to do. Firstly, set up a scheduled task to run the application in Administrator mode. Then set up a separate shortcut that tells the scheduled task to run. If that sounds difficult, actually it's really not, just follow the instructions below.
Note: You had to take some risks because you are required to click through a UAC prompt to setup the scheduled task. YOu know, it's not really a security loophole.
Set Up a Scheduled Task Item
Open the start menu search box (you can just type "task") to open up Task Scheduler. Then click on the right-hand side and choose "Create Task" link.
After that, you need to give the task a short, simple name (preferably without any spaces in it). Then make sure the box for "Run with highest privileges" is get the nod (which is pretty important).
Change to the "Actions" tab and click the "New" button, then browse the application which you are trying to start.
Click the "OK" button to close all the dialogs. At present, the new task is created in the list. If you want to make sure that the application launches the way as you are expecting, you can right-click on it and choose "Run" at this point.
At this point you can see the scheduled task which is setup just now is done, so you can close it (if you want, but remember its name in advance).
Set Up a Seperate Shortcut to Start the Task
First, right-click anywhere on the desktop and choose New \ Shortcut from the menu.
A dialog pop up and from the dialog we need to add a command that will run the scheduled task, passing in the name of the task that we used. Here, I used "runregedit" as the name for the task.
Check you enter the task name looks like this. Then paste the capitalized letters below for the name of your task (It's not case sensitive).
schtasks /run /tn "TASKNAMEINQUOTES"
Give your shortcut some useful name which you want, then click "next" to create it.
At present you have set up a shortcut successfully that will launch the application in administrator mode.
But you can tweak it a bit more ! Open up the properties for the shortcut, then change the Run drop-down to "Minimized" as illustrated(in order to hide the schtasks command line utility), and then click on Change Icon.
The simplest thing to do is just browse to the application that you are opening with the shortcut and you can see the icon for the application itself.
Now you have a good-looking icon which can launches an application in Administrator mode, of course, without UAC prompts. Look amazing ?
Welcome to Newton360 to get more information.0
No comments:
Post a Comment