https://github.com/osquery/osquery logo
Title
g

Gregory Storme

04/22/2022, 1:29 PM
maybe this
SELECT * FROM windows_optional_features WHERE name = 'DirectoryServices-DomainController' AND statename = 'Enabled';
t

tokcum

04/22/2022, 2:03 PM
Nice, I was not aware of this table. I found one Domain Controller who has no records in this table though. I'll have to check, why ...