How to Disable or Enable Vista User Access Control in Command Prompt
There are many possible way to turn off or turn on User Access Control (UAC) in Windows Vista, which frequently pop up a confirmation dialog window to asking for permissions to continue a task which requires elevated administrator rights. Normally UAC cannot be enabled or disabled by using GUI-based Control Panel. For programmers or developers, it may be useful to be able to enable or disable UAC by using CLI (command line interface) commands, which can be used to automate tasks in batch script.
The ability to enable or disable UAC from command prompt is actually using a trick to turn off or on UAC by using registry key. Simply open command prompt window and run the following command:
To Disable UAC
C:\Windows\System32\cmd.exe /k %windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f
To Enable UAC
C:\Windows\System32\cmd.exe /k %windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 1 /f
After the command, computer needs to be restarted to the change to be effective.
Related Articles
- Reveal and Access to Windows Vista Hidden Context-Sensitive (Right Click) Menu Item – Open Command Prompt Here & Copy as Path
- How to Enable More Fonts for Windows Command Prompt
- How to Open Elevated Command Prompt with Administrator Privileges in Windows Vista
- How to Fully Maximize Command Prompt Window in Vista
- Run Command Prompt Window as Administrator by Right Click Computer in Vista
- Open Elevated Command Prompt Window Here as Administrator at Current Folder Directly in Vista Windows Explorer
- Turn Off or Disable User Account Control (UAC) in Windows Vista
- Create and Put an Elevated Command Prompt on Windows Vista Desktop or Start Menu
- Enable or Disable Built-in Administrator Account in Windows Vista
- Disable Direct Root Login and User Access via SSH to Server










































February 4th, 2009 00:45
[...] greater convenient to advanced technical user. In actual, the commands,, which are also used to disable or enable UAC in Vista, are just doing the same thing as directly modifying the [...]
February 4th, 2009 00:45
[...] greater convenient to advanced technical user. In actual, the commands,, which are also used to disable or enable UAC in Vista, are just doing the same thing as directly modifying the [...]
June 25th, 2007 15:29
You need to launch as administrator.
June 25th, 2007 14:07
I do this, and I end up with a oh-so-wonderful “Access is denied” in the MS-DOS window that appears…
April 23rd, 2007 23:48
Or you could just type msconfig and goto tools then down to Disable UAC