As always, very well done Shawn, tutorial is easy to read and understand.
This makes working with programs requiring a uac prompt that you trust a pleasure to run again, while keeping the security offered by the uac on and intact.
Note: Also works on Vista.
Thanks Shawn for this and All your contributions here on the greatest forum for Windows Windows 7.
Added: Have the program load on start minimized:
To do this, you'll need to create a very simple .bat file. To start, Open your favorite text editor like notepad. Enter the following:
start /MIN "" "C:\Program Files\CCleaner\CCleaner.exe"
The above is an example for cCleaner. For other programs, Simply enter the path to your program in quotes. Notice the 2 quotation marks placed together, anything you wish can be entered between them, but they must be there. See example:
start /MIN "cCleaner" "C:\Program Files\CCleaner\CCleaner.exe"
Now you need to save this as a bat file. You do this by clicking file, then "save as" and in the save as box, there is a drop down for "save as type", choose "ALL TYPES" and name it something like "cCleaner.bat
" to a location like "C:\MyBatFiles". You need to save the file with the ".bat
" at the end. Thats how your basic notepad becomes a bat file. I recommend saving it to the c:\ root because it may need access to the file before you log in and if your not logged in yet the program might not load. So create a folder directly in C:\ drive and create a folder like the above example "MyBatFiles".
Example of "save as" above path:
Next you need to change the task scheduler for the program, so open it by typing task scheduler in start search and select it. If your tasks are not shown, Click on the Library folder near the upper left, then double click on the task you want to have open minimized on start up. Click on the "Actions" tab and highlight the current path and click "edit". In the opened edit window, you need to now browse to the newly created .bat file you just created. Once done click "OK".
Next, click on the "Triggers" tab. Click new and choose the option that best works for you from the drop down "Begin the task". For example "At startup". Click OK, then click OK to close the task editor. Thats it, your UAC program will not require your input, and will start automatically minimized for you.
For testing, in the triggers tab, "Begin the task" drop down, choose "On Workstation Lock". This way to test it, you don't have to restart the PC, just select "Lock" from the start menu. Once you log back on, you should see the program loaded and minimized. If so, you then can go back and choose at "At startup" in the task scheduler "triggers" tab, begin the task drop down.
Enjoy your program loading on startup, minimized, without UAC prompt input!