Skip to content

Instantly share code, notes, and snippets.

@kasajian
Created May 20, 2014 03:30
Show Gist options
  • Save kasajian/4e8aac0e315524f46be3 to your computer and use it in GitHub Desktop.
Save kasajian/4e8aac0e315524f46be3 to your computer and use it in GitHub Desktop.
UAC

To Disable UAC

Using a Batch file:

REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "EnableLUA" /t "REG_DWORD" /d "0" /f

Using Powershell:

 @powershell Set-ItemProperty -Path registry::HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\policies\system -Name EnableLUA -Value 0

To determine if UAC is disabled

Using a Batch file:

REG Query HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA 

Using Powershell:

@powershell Get-ItemProperty -Path registry::HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\policies\system -Name EnableLUA
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment