if you need to check if UAC is enabled on a workstation via command line you can do the following:
in a command prompt, run
REG QUERY HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System\ /v EnableLUA
if you receive
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System
EnableLUA REG_DWORD 0×1
then UAC is enabled. if you receive
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System
EnableLUA REG_DWORD 0×0
then it is disabled.
Tagged: command line, command prompt, UAC, windows
