Configure User Account Protection
25 September 2005 by Snakefoot | Comment » | Trackback OffUser Account Protection (UAP) is an attempt to solve this problem, by introducing two modes:
- Admin Approval Mode, when logged in as local administrators, then one has to give consent to allow an application to perform administrative tasks.
- Standard User Mode, when logged in as standard user, then one has to provide credentials for administrator account to allow an application to perform administrative tasks.
Virtualization is part of UAC and ensures that applications are redirected into the VirtualStore folder of the user-profile, when they try to modify files or registry keys on a system level. Even if an application is allowed to modify the registy, then this registry change will only affect the local user. This should prevent an application from messing up the entire system, but only affect a single user account. Applications are only virtualized when UAC is enabled, so disabling UAC also disables the protection of virtualization.
When requesting for consent or credentials, then UAP switches to secure desktop mode (black dimmed background) where only processes with SYSTEM privileges can interact. This prevents applications from messing with the consent dialog (ex. pressing the Continue-button for the user).
To configure whether UAP should be enabled or not:
- Press Start and execute the following command:
control userpasswords
- Click "Turn User Account Control on or off" and uncheck "Use User Account Control (UAC) to help protect your computer"
Should be reflected in this registry key:[HKEY_LOCAL_MACHINE \SOFTWARE \Microsoft \Windows \CurrentVersion \Policies \System]
EnableLUA = 1 (Default = 1; Disabled = 0)
Note when disabled Security Center will display a balloon message at every boot warning that User Account Control is turned off.
- Start the Local Security Policies snapin
- In the tree-view go to "Local Policies" -> "Security Option"
- Modify the option "User Account Protection: Behavior of the elevation prompt for administrators"
- No Prompt (0)
- Prompt for credentials (2)
- Prompt for consent (1)
[HKEY_LOCAL_MACHINE \SOFTWARE \Microsoft \Windows \CurrentVersion \Policies \System]
ConsentPromptBehaviorAdmin = 2 (Default = 1; Disabled = 0)
- Start the Local Security Policies snapin
- In the tree-view go to "Local Policies" -> "Security Option"
- Modify the option "User Account Control: Switch to the secure desktop when prompting for elevation"
Should be reflected in this registry key:[HKEY_LOCAL_MACHINE \SOFTWARE \Microsoft \Windows \CurrentVersion \Policies \System]
PromptOnSecureDesktop = 1 (Default = 1; Disabled = 0)
- Right-click the shortcut to the application and choose the "Run as Administrator" option.
- Press the Start Orb and ex. type "cmd", but instead of pressing ENTER, press CTRL+SHIFT+ENTER and it will be launched as an Elevated Command Prompt with Administrative rights.
- Use RunAs to launch as Administrator (Will have to supply the password), consider the option /noprofile for faster load:
C:\Windows\System32\runas.exe /user:administrator "cmd %L"
- Extend the context menu for the filetype (file-extension) with the option to open the file with administrator rights (Ex. start msi-installer with administrator rights):
REGEDIT4
[HKEY_CLASSES_ROOT\Msi.Package\shell\runas]
@="Install &as..."
[HKEY_CLASSES_ROOT\Msi.Package\shell\runas\command]
@="msiexec /i "%1""
Credits TweakVista.com
Updated: 15 June 2008