Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there any command which will tell me the state of UAC? Eg it's switched on, off of which level it's on.

share|improve this question
up vote 6 down vote accepted

Run from the command prompt

REG QUERY HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System\ /v EnableLUA

if you get

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System
    EnableLUA    REG_DWORD    0x1

UAC is enabled, but if you get

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System
    EnableLUA    REG_DWORD    0x0

UAC is disabled.

share|improve this answer
    
Great thanks! As that's in HKLM I guess only an admin user could run that though? – Adam Dempsey Sep 24 '10 at 8:13
    
@AdemDempsey I'm not sure, you'd have to check... I don't currently use any non-admin users. – BloodPhilia Sep 24 '10 at 8:18
    
@AdemDempsey I checked by creating a non-admin user and it works fine! – BloodPhilia Sep 24 '10 at 8:22
    
@BloodPhilia - In some edge cases this does not work. On my system EnableLUA is set to 0x1 yet still UAC is not active. This can happen on a server OS where you have removed the GUI components. UAC is never enabled on Server Core. – Peter Hahndorf Dec 26 '13 at 8:54

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .