Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.