{"id":1824,"date":"2016-07-04T09:13:08","date_gmt":"2016-07-04T14:13:08","guid":{"rendered":"http:\/\/swildow.darktech.org\/wp\/?p=1824"},"modified":"2016-07-04T09:13:08","modified_gmt":"2016-07-04T14:13:08","slug":"elevate-a-program-without-changing-uac","status":"publish","type":"post","link":"https:\/\/www.wildow.com\/blog\/?p=1824","title":{"rendered":"elevate a program without changing UAC"},"content":{"rendered":"<p>People always disable the UAC because there is no way to disable the UAC for a specific program. is this really true?<br \/>\nNo, it is not true. There is an build in way to do this!<\/p>\n<p>Q: How can I do this?<br \/>\nA: Use the taskscheduler.<\/p>\n<p>1. Start the computer management MMC snap-in<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/dl.dropboxusercontent.com\/u\/5749744\/Bilder\/msfn.org\/UAC\/1.png\" alt=\"1.png\" \/><\/p>\n<p>2. This step is optional: go to Task scheduler Library and make a right click and click &#8220;New Folder&#8221; (see picture 2)<br \/>\nand type in &#8220;myTasks&#8221; to create a new folder (see picute 3)<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/dl.dropboxusercontent.com\/u\/5749744\/Bilder\/msfn.org\/UAC\/2.png\" alt=\"2.png\" \/><br \/>\n<img decoding=\"async\" src=\"https:\/\/dl.dropboxusercontent.com\/u\/5749744\/Bilder\/msfn.org\/UAC\/3.png\" alt=\"3.png\" \/><\/p>\n<p>3. Make a right click on the folder myTasks and select &#8220;Create Task&#8221;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/dl.dropboxusercontent.com\/u\/5749744\/Bilder\/msfn.org\/UAC\/4.png\" alt=\"4.png\" \/><\/p>\n<p>and type in a name: I always name them &#8220;autoElevatePROGRAMNAME&#8221;. Here for my expample &#8220;autoElevateProcessExplorer&#8221; and mark the checkbox &#8220;Run with highest priviligies&#8221;.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/dl.dropboxusercontent.com\/u\/5749744\/Bilder\/msfn.org\/UAC\/5.png\" alt=\"5.png\" \/><\/p>\n<p>4. go to the tab &#8220;Actions&#8221; and select the program you want to execute<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/dl.dropboxusercontent.com\/u\/5749744\/Bilder\/msfn.org\/UAC\/6.png\" alt=\"6.png\" \/><\/p>\n<p>and click ok, to create the Task.<\/p>\n<p>5. create a new shortcut on your desktop and type in the following command:<\/p>\n<pre class=\"ipsCode prettyprint lang-auto prettyprinted\"><span class=\"pln\">C<\/span><span class=\"pun\">:<\/span><span class=\"pln\">\\Windows\\System32\\schtasks<\/span><span class=\"pun\">.<\/span><span class=\"pln\">exe <\/span><span class=\"pun\">\/<\/span><span class=\"pln\">RUN <\/span><span class=\"pun\">\/<\/span><span class=\"pln\">TN <\/span><span class=\"str\">\"myTasks\\autoElevateProcessExplorer\"<\/span><\/pre>\n<p>Q: Do I have to do this for all programs I want to start?<br \/>\nA: Yes<\/p>\n<p>Q: How Do I backup my tasks?<br \/>\nA: make a right click on the task and select &#8220;Export&#8221; and save it into a XML file and after a reinstall of your Windows<br \/>\nVista \/ 7 select &#8220;Import Task&#8221; and import the XML file again.<br \/>\nQ: How do I start applications with administrator rights at startup?<br \/>\nA: 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 &#8220;triggers&#8221; and select &#8220;create Trigger&#8221; and choose &#8220;Begin the task&#8221; &#8211; &#8220;At logon&#8221;. If you create such an trigger you don&#8217;t have to put the shortcut into the startup folder.<\/p>\n<p>So I hope I was able to show you how to start applications with elevated rights, without disabling the UAC and without being &#8220;annoyed&#8221; to accept the UAC prompt. I&#8217;m using this technique for 3 years (starting with Vista Beta2 Milestone Builds) now.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 &#8230; <a class=\"more-link\" href=\"https:\/\/www.wildow.com\/blog\/?p=1824\">Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-1824","post","type-post","status-publish","format-standard","hentry","category-windows"],"_links":{"self":[{"href":"https:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1824","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1824"}],"version-history":[{"count":2,"href":"https:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1824\/revisions"}],"predecessor-version":[{"id":1826,"href":"https:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1824\/revisions\/1826"}],"wp:attachment":[{"href":"https:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1824"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1824"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1824"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}