Wednesday, June 27, 2007

Easily Tweak Or Disable UAC on Windows Vista

(For full text with comments please click on the title)

TweakUAC in a clean and tidy interface with 3 options to disable, suppress UAC elevation prompt, or re-enable Vista UAC.

In fact, without using 3rd party freeware such as TweakUAC, Windows Vista itself is not short of interfaces to tweak or disable UAC!

Tweak or disable UAC from System Configuration

Press Windows + R keyboard shortcut to bring up Vista Run command dialog box,

Type msconfig and press OK button to open System Configuration dialog box,

Click on the Tools tab, locate and highlight the Disable UAC or Enable UAC tool, press the Launch button.

Tweak or disable UAC from Command Prompt

I don’t create these commands on myself. In fact, I copy them directly from the System Configuration utility:

Command to disable UAC in Vista Command Prompt:

%windir%\System32\cmd.exe /k %windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f

Command to enable UAC in Vista Command Prompt:

%windir%\System32\cmd.exe /k %windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 1 /f

Command to suppress Prompt For Consent (Consent UI):

%windir%\System32\cmd.exe /k %windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v ConsentPromptBehaviorAdmin /t REG_DWORD /d 0 /f

Command to turn on Prompt For Consent (Consent UI):

%windir%\System32\cmd.exe /k %windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v ConsentPromptBehaviorAdmin /t REG_DWORD /d 2 /f

The Consent UI is turned on by default, to get user alerted and acknowledge it before elevating administrative privilege for processes that require it.

Tweak or disable UAC from keyboard shortcut or Hotkey

Create a Windows batch file (with bat file extension) to keep either disable UAC or enable UAC command line (above) and make a file shortcut to it,

Right-click the shortcut, click the Advanced button, tick the Run As Administrator check-box and press OK,

Click the Shortcut Key text-box and press F10 - to assign F10 as keyboard shortcut or hotkey to execute the Windows batch file created. Of course, you can use key other than F10, as long as the custom hotkey has not been used for other purpose.

Tweak or disable UAC from Vista Registry key

Also, these Vista Registry keys are referred to the commands at above. If you’re not comfortable with Registry editor (regedit.exe), just copy and paste the command into Command Prompt window to execute.

To disable UAC, locate this Registry key and set it to 0. To re-enable UAC, set EnableLUA to 1:

HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\EnableLUA

To automatically elevate administrative privilege without prompt for consent, locate this Registry key and set it to 0. To re-enable the default Prompt For Consent (Consent UI) for processes that require administrative privilege, set the ConsentPromptBehaviorAdmin to 2:

HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\ConsentPromptBehaviorAdmin


Tweak or disable UAC from Control Panel

Locate and open up User Accounts in Control Panel,

Click on the “Turn User Account Control On Or Off” link,

Un-tick the “Use User Access Control (UAC) to help protects your computer” check-box and press OK

Tweak or disable UAC from Local Security Policy

Click the Vista Orb, type secpol.msc in the Start Search text box and press ENTER key to bring up Vista Local Security Policy editor,

On the left panel, click to expand Local Policies tree follow by Security Options,

On the right panel, scroll down to the bottom and change the security settings that related to User Account Control policies. All of them are quite straight-forward and easy to understand.

Tips: To read more information related to the Local Security Setting policies, double-click to open it and click on the Explain tab for more description or explanation about that policy as well as the respective configurable settings.

0 comments: