tags:

views:

29

answers:

1

Is there a way to get the UAC status(including level) in windows 7 computer using powershell?

A: 

I am not sure about level (I'll update the answer if I find it) but to test if UAC is turned on or off:

Get-ChildItem HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System\EnableLUA

If the value returned is 0 (or the key isn't present) then UAC is disabled. Note: This may not be 100% fool-proof, as it indicates the UAC status at the time of boot.

Goyuix