How to Disable or Enable UAC from command line

 

Hereby a quick way how to disable/enable in Windows 8, Windows 7 or Windows Vista User Account Control (UAC) by using command line.

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

 

Be aware that changing this setting in Windows 8, will have an influence on the usage of Metro Apps.

Some tools on this matter:

Windows UAC Manager

Additional information