H
H
Hitmanp2015-10-12 12:25:29
System administration
Hitmanp, 2015-10-12 12:25:29

Get status via console about UAC service - Windows User Account Control - how?

You want to get the status or any information about the UAC service through the console. That is, you need to get information - whether UAC is enabled for the user or not. I am writing a program that will perform different actions depending on whether UAC is on or off.
The most important point is the lack of admin rights. That is, the console command should not require admin rights. REG ADD and working with the registry is not suitable - as it requires an admin. Or get the status of the registry key about the UAC status, admin rights are not required?
Is there even a built-in CMD utility to manage UAC in Windows?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
Hitmanp, 2015-10-12
@Hitmanp

I asked the question myself and found the answer. Registry key
REG QUERY HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System\ /v EnableLUA
If 0x1 - enabled
If 0x0 - disabled

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question