{"id":335,"date":"2008-06-17T13:18:23","date_gmt":"2008-06-17T07:48:23","guid":{"rendered":"http:\/\/198.58.113.91\/blog\/?p=335"},"modified":"2021-05-31T15:44:45","modified_gmt":"2021-05-31T10:14:45","slug":"run-programs-elevated-without-getting-the-uac-prompt","status":"publish","type":"post","link":"https:\/\/www.winhelponline.com\/blog\/run-programs-elevated-without-getting-the-uac-prompt\/","title":{"rendered":"How to Run Programs as Administrator (Elevated) without UAC Prompt"},"content":{"rendered":"<p>Recently, I came across a <a href=\"http:\/\/groups.google.com\/group\/microsoft.public.windows.powershell\/msg\/eab62789592e1c1c?hl=en\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">brilliant tip<\/a> on how to run programs elevated without getting the User Account Control (UAC) prompt. This can be done without turning off the UAC and hence it does not compromise system security.<!--more--><\/p>\n<h2>How to Run Programs elevated without UAC Prompt<\/h2>\n<p>You can run apps elevated (as administrator) without getting the UAC elevation prompt when logged in to an administrator account. The trick to bypass UAC is to create a scheduled task (with highest privileges) for each program that you want to run, and then invoke the scheduled task item <a href=\"https:\/\/www.winhelponline.com\/blog\/launching-a-scheduled-task-manually-using-schtasksexe\/\">manually<\/a> using <code>schtasks.exe<\/code>. The following instructions apply to all versions of Windows, including Windows 10.<\/p>\n<h3>Step 1:\u00a0Creating a Scheduled Task<\/h3>\n<ol>\n<li>Launch Task Scheduler (<code>taskschd.msc<\/code>)<\/li>\n<li>Right-click Task Scheduler Library category in the left, and choose <b>New Folder<\/b><\/li>\n<li>Name the folder as <b>MyApps<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/archived2\/myapps-sched.gif\" width=\"379\" height=\"202\" border=\"1\" \/><br \/>\n<\/b><\/li>\n<li>Select the <b>MyApps<\/b> folder<\/li>\n<li>In the <b>Actions<\/b> pane on the right, click <b>Create Task\u2026<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/archived2\/sched1.gif\" width=\"206\" height=\"162\" border=\"1\" \/><br \/>\n<\/b><\/li>\n<li>Type a name for the task that you want to create.<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/archived2\/sched2.gif\" width=\"342\" height=\"385\" border=\"1\" \/><\/li>\n<li>Enable the option <b>Run with highest privileges<\/b>. This is the most important step.<\/li>\n<li>In the <b>Action<\/b> tab, click <b>New<\/b><\/li>\n<li>Click <b>Browse\u2026<\/b> to select the program (Example: <i>Regedit.exe<\/i>) you want to run and mention the parameters required if any, for the application. For example, to execute a .reg file, select <code>regedit.exe<\/code> and mention the parameter as <code>\/s filename.reg<\/code> with the full path.To run Services MMC applet, browse and select <b>MMC.EXE<\/b> and type <b>services.msc<\/b> in the <b>Add arguments (optional) <\/b>field.\n<p>Some of the programs that I use frequently are:<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"187\"><b>Application<\/b><\/td>\n<td width=\"460\"><b>Command-line used<\/b><\/td>\n<\/tr>\n<tr>\n<td width=\"187\">Services MMC<\/td>\n<td width=\"460\">mmc.exe services.msc<\/td>\n<\/tr>\n<tr>\n<td width=\"187\">Device Manager<\/td>\n<td width=\"460\">mmc.exe devmgmt.msc<\/td>\n<\/tr>\n<tr>\n<td width=\"187\">Registry Editor<\/td>\n<td width=\"460\">c:\\windows\\regedit.exe<\/td>\n<\/tr>\n<tr>\n<td width=\"187\">Admin Command Prompt<\/td>\n<td width=\"460\">c:\\windows\\system32\\cmd.exe<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/li>\n<\/ol>\n<div class=\"rp\"><strong>RELATED:<\/strong> <a href=\"https:\/\/www.winhelponline.com\/blog\/uac-asks-password-even-logged-administrator\/\">[Fix] UAC asks for password even if logged in as administrator<\/a><\/div>\n<h3>Step 2: Launching a Scheduled Task item manually<\/h3>\n<p>To run a scheduled task item manually, use the <a href=\"https:\/\/www.winhelponline.com\/blog\/launching-a-scheduled-task-manually-using-schtasksexe\/\">schtasks.exe<\/a> command-line tool that comes with Windows. For example, to launch the Services console task that you already created, use the following command:<\/p>\n<pre class=\"commandline\">SCHTASKS.EXE \/RUN \/TN \\MyApps\\SERVICESMMC<\/pre>\n<p><b>Note:<\/b> Where <b>SERVICESMMC<\/b> is the Taskname (see <b>Fig 1<\/b>). You&#8217;ll need to enclose the task name within double-quotes if the task name contains blank spaces in between. (Example: <code><i>SCHTASKS.EXE \/RUN \/TN \"Name of the Task\"<\/i><\/code>)<\/p>\n<p>To launch the Registry Editor task, run the following command:<\/p>\n<pre class=\"commandline\">SCHTASKS.EXE \/RUN \/TN \\MyApps\\REGEDIT<\/pre>\n<p><em>(If the folder name <code>\\MyApps\\<\/code> is not mentioned, you&#8217;ll see the error message <strong>ERROR: The system cannot find the file specified<\/strong> when attempting to run the task.)<\/em><\/p>\n<p>If you&#8217;ve created the Tasks in the Task Scheduler library (without creating a separate folder in Tasks Scheduler), you can simply mention the task name like below:<\/p>\n<pre>SCHTASKS.EXE \/RUN \/TN task_name<\/pre>\n<h4>Creating desktop shortcuts to run each Task<\/h4>\n<p>You can create a desktop shortcut for each scheduled task item you&#8217;ve created earlier. Right-click on the Desktop and choose New, Shortcut. Type the command-line (e.g., <code>SCHTASKS.EXE \/RUN \/TN \\MyApps\\REGEDIT<\/code>). Mention a name for the shortcut and click <b>Finish<\/b>.<\/p>\n<p><b>Run the task minimized<\/b><\/p>\n<p>As Schtasks.exe is a console utility, you&#8217;ll see the Command Prompt window opening and closing quickly whenever you run the shortcut. So, you may configure the shortcut to run in a minimized window state, in the shortcut properties.<\/p>\n<ul>\n<li>Right-click on the shortcut and click <b>Properties<\/b>.<\/li>\n<li>In the <b>Run<\/b> drop-down options, choose <b>Minimized<\/b><\/li>\n<li>Click <b>OK<\/b>.<\/li>\n<\/ul>\n<p><b>Note:<\/b> In the shortcut properties, you may want to click <b>Change Icon<\/b> and assign an appropriate icon for the shortcut. The icons should be present inside the executable itself, in most cases. For Regedit.exe, browse to Regedit.exe and choose an icon. You may also browse the <b>shell32.dll<\/b> and <b>imageres.dll<\/b> files for additional icons.<\/p>\n<p>Here are the shortcuts that I created to launch frequently used programs in my system, and I&#8217;ve moved them to the Taskbar Toolbar for easy access. Note that you can also Pin the shortcuts to the Start menu if you wish.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/archived2\/mytools.gif\" width=\"372\" height=\"86\" \/><\/p>\n<p>This way you can launch your frequently used programs elevated without getting the User Account Control prompt and without relaxing the security settings of your computer. Note that the above UAC bypass method works only if you&#8217;re logged in as administrator and there is no question of privilege escalation issues here.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently, I came across a brilliant tip on how to run programs elevated without getting the User Account Control (UAC) prompt. This can be done without turning off the UAC and hence it does not compromise system security.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[7],"tags":[581],"class_list":["post-335","post","type-post","status-publish","format-standard","hentry","category-windows","tag-task-scheduler"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":277,"url":"https:\/\/www.winhelponline.com\/blog\/mapped-drives-not-seen-elevated-command-prompt-task-scheduler\/","url_meta":{"origin":335,"position":0},"title":"Mapped drives not seen from elevated Command Prompt and Task Scheduler","author":"Ramesh","date":"May 12, 2008","format":false,"excerpt":"When you attempt to access a mapped network drive from an elevated or admin Command Prompt or Task Scheduler (with the highest privileges), the mapped drive won't be available. Attempting to use the mapped network drives causes the error The system cannot find the path specified (Error code: 0x80070003). Here\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"mapped network drive not seen from admin command prompt and task scheduler","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2008\/05\/mapped-drives-enablelinkedconnections.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2008\/05\/mapped-drives-enablelinkedconnections.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2008\/05\/mapped-drives-enablelinkedconnections.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":5203,"url":"https:\/\/www.winhelponline.com\/blog\/microsoft-fixes-eventvwr-exe-uac-bypass-exploit-windows-10-creators-update\/","url_meta":{"origin":335,"position":1},"title":"Microsoft fixes Eventvwr.exe UAC Bypass Exploit in Windows 10 Creators Update","author":"Ramesh","date":"January 16, 2017","format":false,"excerpt":"In Windows 10 Creators Update preview build 15007, Microsoft seems to have fixed the UAC bypass method involving eventvwr.exe. First, how does this bypass work? When you're logged in as administrator, Windows binaries that have the execution level set to \"highestavailable\" and \"autoelevate\" property set to \"true\" in the manifest,\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"uac bypass exploit eventvwr.exe","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2017\/01\/uac-bypass-2.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2017\/01\/uac-bypass-2.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2017\/01\/uac-bypass-2.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":9110,"url":"https:\/\/www.winhelponline.com\/blog\/uac-asks-password-even-logged-administrator\/","url_meta":{"origin":335,"position":2},"title":"[Fix] UAC asks for password even if logged in as administrator","author":"Ramesh","date":"May 7, 2019","format":false,"excerpt":"Is the UAC dialog asking for the password during elevation even though you're logged in to an administrator account? For non-admin accounts, the UAC elevation asks for admin credentials, but for administrator accounts, the UAC dialog should just ask for consent, not password, when launching non-Windows executables in elevated mode.\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"UAC asks for password even if logged in as an administrator","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/05\/uac-asks-password-admin-2.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":334,"url":"https:\/\/www.winhelponline.com\/blog\/launching-a-scheduled-task-manually-using-schtasksexe\/","url_meta":{"origin":335,"position":3},"title":"Launching a Scheduled Task manually using Schtasks.exe","author":"Ramesh","date":"June 17, 2008","format":false,"excerpt":"Schtasks.exe console tool helps you create, delete, query, change, run, and end scheduled tasks on a local or remote computer. Running Schtasks.exe without arguments displays the list of each registered task, the Next Run Time, and the Status for each task. For example, you may want to run the RegIdleBackup\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/archived2\/myapps-sched.gif?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":32015,"url":"https:\/\/www.winhelponline.com\/blog\/make-uac-ask-password-admins\/","url_meta":{"origin":335,"position":4},"title":"How to Make UAC Always ask for Password on Admin Accounts","author":"Ramesh","date":"January 17, 2023","format":false,"excerpt":"When you're login to an admin account and initiate an action that requires administrative rights (elevation of privilege), the UAC will ask for consent (instead of the username and password.) You select either Yes (\"Permit\") or No (\"Deny\") in the consent dialog. This operation will happen on the secure desktop.\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"UAC asks for password even if logged in as an administrator","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/05\/uac-asks-password-admin-1.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/05\/uac-asks-password-admin-1.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/05\/uac-asks-password-admin-1.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/05\/uac-asks-password-admin-1.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":985,"url":"https:\/\/www.winhelponline.com\/blog\/add-uac-shield-icon-right-click-context-menu-windows-7\/","url_meta":{"origin":335,"position":5},"title":"How to Add UAC Shield Icon for a Right-Click Menu Item in Windows","author":"Ramesh","date":"January 26, 2010","format":false,"excerpt":"Most users customize the right-click menu by adding additional verbs in the registry in order to launch programs or scripts. Windows 7 (and higher) lets you add the UAC Shield icon for static context menu items. If a verb you add to the right-click menu launches a program which runs\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/335","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/comments?post=335"}],"version-history":[{"count":0,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/335\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/media?parent=335"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/categories?post=335"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/tags?post=335"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}