{"id":12225,"date":"2018-07-18T07:18:11","date_gmt":"2018-07-18T07:18:11","guid":{"rendered":"https:\/\/www.top-password.com\/blog\/?p=12225"},"modified":"2018-07-18T07:18:11","modified_gmt":"2018-07-18T07:18:11","slug":"make-your-program-always-run-as-administrator","status":"publish","type":"post","link":"https:\/\/www.top-password.com\/blog\/make-your-program-always-run-as-administrator\/","title":{"rendered":"4 Ways to Make Your Program Always Run as Administrator"},"content":{"rendered":"<p>Could I force a program to always run as an administrator? Is it possible to automatically open a batch file as admin when you double-click on it? Many old programs need to be run as administrator in order to function properly on Windows 10 \/ 8 \/ 7. In this tutorial we&#8217;ll show you 4 methods to make your program always run as administrator by default.<\/p>\n<p><strong>Method 1: Always Run as Administrator from Program Shortcut<\/strong><\/p>\n<ol>\n<li>Right-click on the shortcut of your program, and then select <strong>Properties<\/strong> from the context menu.<\/li>\n<li>In the Properties window, select the <strong>Shortcut<\/strong> tab, and click on the <strong>Advanced<\/strong> button.\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2018\/07\/shortcut-properties.png\" alt=\"\" width=\"364\" height=\"459\" class=\"alignnone size-full wp-image-12232\" \/>\n<\/li>\n<li>Check the box next to <strong>Run as administrator<\/strong> and click <strong>OK<\/strong>.\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2018\/07\/run-as-administrator.png\" alt=\"\" width=\"381\" height=\"282\" class=\"alignnone size-full wp-image-12233\" \/>\n<\/li>\n<li>Every time you double-click the shortcut it will always run your program as administrator by default.<\/li>\n<\/ol>\n<p><strong>Method 2: Always Run as Administrator in Compatibility Mode<\/strong><\/p>\n<ol>\n<li>Right-click on your application or its shortcut, and then select <strong>Properties<\/strong> in the context menu.<\/li>\n<li>Under the <strong>Compatibility<\/strong> tab, check the &#8220;<strong>Run this program as an administrator<\/strong>&#8221; box and click <strong>OK<\/strong>.\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2018\/07\/run-this-program-as-administrator.png\" alt=\"\" width=\"364\" height=\"507\" class=\"alignnone size-full wp-image-12234\" \/>\n<\/li>\n<li>From now on, double-click on your application or shortcut and it should automatically run as administrator.<\/li>\n<\/ol>\n<p><strong>Method 3: Always Run as Administrator Using Registry Hack<\/strong><\/p>\n<ol>\n<li>Open the Registry Editor and browse to the following key:<br \/>\n<code>HKEY_CURRENT_USER\\Software\\Microsoft\\Windows NT\\CurrentVersion\\AppCompatFlags\\Layers<\/code><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2018\/07\/new-string-value.png\" alt=\"\" width=\"590\" height=\"297\" class=\"alignnone size-full wp-image-12235\" \/><\/p>\n<p> \tRight-click blank area in the right pane, and then select <strong>New<\/strong> -&gt; <strong>String Value<\/strong>.<\/li>\n<li>Rename the String value to the full path of the program you want to always run as administrator, and then double-click it to modify.\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2018\/07\/rename-string-entry.png\" alt=\"\" width=\"590\" height=\"239\" class=\"alignnone size-full wp-image-12236\" \/>\n<\/li>\n<li>Type <strong>~ RUNASADMIN<\/strong> in the &#8220;Value data&#8221; field and click <strong>OK<\/strong>.\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2018\/07\/runasadmin.png\" alt=\"\" width=\"382\" height=\"170\" class=\"alignnone size-full wp-image-12237\" \/>\n<\/li>\n<li>Close Registry Editor. The program will now open in administrator mode when you double-click it.<\/li>\n<\/ol>\n<p><strong>Method 4: Create a Batch to Always Run Program as Administrator<\/strong><\/p>\n<ol>\n<li>Open Notepad (or your favorite text editor), copy and paste the following batch script:\n<pre style=\"margin:0; color:#008000;\"><div style=\"white-space: pre-wrap;\">@echo off\r\n\r\n:: BatchGotAdmin\r\n:-------------------------------------\r\nREM  --> Check for permissions\r\n>nul 2>&1 \"%SYSTEMROOT%\\system32\\cacls.exe\" \"%SYSTEMROOT%\\system32\\config\\system\"\r\n\r\nREM --> If error flag set, we do not have admin.\r\nif '%errorlevel%' NEQ '0' (\r\n    echo Requesting administrative privileges...\r\n    goto UACPrompt\r\n) else ( goto gotAdmin )\r\n\r\n:UACPrompt\r\n    echo Set UAC = CreateObject^(\"Shell.Application\"^) > \"%temp%\\getadmin.vbs\"\r\n    set params = %*:\"=\"\"\r\n    echo UAC.ShellExecute \"C:\\Program Files (x86)\\Top Password\\ISO2Disc.exe\", \"\", \"\", \"runas\", 1 >> \"%temp%\\getadmin.vbs\"\r\n\r\n    \"%temp%\\getadmin.vbs\"\r\n    del \"%temp%\\getadmin.vbs\"\r\n    exit \/B\r\n\r\n:gotAdmin\r\n    pushd \"%CD%\"\r\n    CD \/D \"%~dp0\"\r\n:--------------------------------------<\/div><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2018\/07\/run-batch-as-administrator.png\" alt=\"\" width=\"600\" height=\"372\" class=\"alignnone size-full wp-image-12238\" \/><\/p>\n<p> \tThe above script will make the <a href=\"https:\/\/www.top-password.com\/iso2disc.html\" rel=\"noopener\" target=\"_blank\">ISO2Disc<\/a> utility to always run as administrator. You need to replace the full path of ISO2Disc with your desired application.<\/li>\n<li>Next, save the file by clicking <strong>File<\/strong> -&gt; <strong>Save<\/strong>. Give it any name you like, but replace the default .txt file extension with the <strong>.bat<\/strong> extension.\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2018\/07\/save-a-batch-file.png\" alt=\"\" width=\"587\" height=\"319\" class=\"alignnone size-full wp-image-12239\" \/><\/p>\n<\/li>\n<li>Now, double-click the batch file and it will then launch your program as administrator.<\/li>\n<\/ol>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>Could I force a program to always run as an administrator? Is it possible to automatically open a batch file as admin when you double-click on it? Many old programs need to be run as administrator in order to function properly on Windows 10 \/ 8 \/ 7. In this tutorial we&#8217;ll show you 4 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,10,1894,3,39],"tags":[3881,495],"class_list":["post-12225","post","type-post","status-publish","format-standard","hentry","category-others","category-tips-tricks","category-windows-10","category-windows-7","category-windows-8","tag-always-run-as-administrator-windows-10","tag-always-run-program-as-administrator"],"_links":{"self":[{"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/posts\/12225","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/comments?post=12225"}],"version-history":[{"count":12,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/posts\/12225\/revisions"}],"predecessor-version":[{"id":12245,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/posts\/12225\/revisions\/12245"}],"wp:attachment":[{"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/media?parent=12225"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/categories?post=12225"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/tags?post=12225"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}