...Because someone's gotta tell the story...


To return to the main Blog List, click Full Blog Listing.


Group Policy

Bypass UAC and elevate the Command Prompt

Friday, April 09, 2010 in Technical Articles (Views: 3317)
This can be done in a variety of ways, but here is a great way to bypass UAC when it comes to the command prompt.

Getting late tonight, so just wanted to throw this quick blog out.

This has been tested on Windows 7, and am sure with UAC rules, this should also work in Vista.

Bypassing cmd.exe's UAC admin prompt is an easy one. Just create the following key:

HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers

- You may have to create the Layers key.

Create a string value, with the name as: c:\windows\system32\cmd.exe (assuming this is the path to your Windows directory), with the value RUNASADMIN.

Wouldn't recommend this for all users (creating in HKLM), but this is a fast and easy way to run the command prompt in elevated mode.

You can do this through Group and Local Security Policy as well - or just set a registry setting GPO to take the same effect.


Related Blogs You May Be Interested In:

To leave a comment, please log in and/or register.