I want to read security settings value programmatically using command prompt and wmic.exe tool.
Specifically value "Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Security Options\User Account Control: Run all administrators in Admin Approval Mode".
It's interesting also to disable it from console. I failed to find anything meaningful via Google. May Be someone knows how to read it? Solution using "...GetObject("winmgmts:...")" is also acceptable. Tnx in advance fror useful hints.
Reading of Windows security settings using cmd.exe.
I found the corresponding values in the registry, so the answer to the question is there and it is most likely closed. And the utility wmic.exe is not needed.
Might be useful to someone. Corresponding property values and registry values:
Settings location inside "secpol.msc": Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Security Options\
Corresponding registry key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
Legend:
Setting & registry value #1:
Setting & registry value #2:
Setting & registry value #3:
Setting & registry value #4: