Hi, this is my second part of the series "What is the UAC".
People always disable the UAC because there is no way to disable the UAC for a specific program. is this really true?
No, it is not true. There is an build in way to do this!
Q: How can I do this?
A: Use the taskscheduler.
1. Start the computer management MMC snap-in
2. This step is optional: go to Task scheduler Library and make a right click and click "New Folder" (see picture 2)
and type in "myTasks" to create a new folder (see picute 3)
3. Make a right click on the folder myTasks and select "Create Task"
and type in a name: I always name them "autoElevatePROGRAMNAME". Here for my expample "autoElevateProcessExplorer" and mark the checkbox "Run with highest priviligies".
4. go to the tab "Actions" and select the program you want to execute
and click ok, to create the Task.
5. create a new shortcut on your desktop and type in the following command:
C:\Windows\System32\schtasks.exe /RUN /TN "myTasks\autoElevateProcessExplorer"
Q: Do I have to do this for all programs I want to start?
Q: How Do I backup my tasks?
A: make a right click on the task and select "Export" and save it into a XML file and after a reinstall of your Windows
Vista / 7 select "Import Task" and import the XML file again.
Q: How do I start applications with administrator rights at startup?
A: You can copy the shortcut into the startup folder ( C:\Users\USERNAME\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup ) or run the task with a trigger (in the task creation window to to "triggers" and select "create Trigger" and choose "Begin the task" - "At logon". If you create such an trigger you don't have to put the shortcut into the startup folder.
So I hope I was able to show you how to start applications with elevated rights, without disabling the UAC and without being "annoyed" to accept the UAC prompt. I'm using this technique for 3 years (starting with Vista Beta2 Milestone Builds) now.
Edited by MagicAndre1981, 30 August 2014 - 09:30 AM.