I have a rather unusual question regarding the "Local Administrators" (LA) group on Windows PCs. When a system can contact the domain controller (DC) (on prem), the active directory (AD) security groups (such as "Domain Admins") show as expected. Naturally, when off prem, the DC cannot be reached, so viewing the LA group shows the SID of that group instead of the name. When viewing this data via computer management, I can of course read that SID. However, PowerShell scripts to read the LA group do not show anything about the AD security groups that cannot be resolved.
I would like to be able to utilize PowerShell or any other system process to grab these SIDs when a system is off prem. We utilize this data for inventory and rights purposes, but off prem machines are proving to be a headache.
Any thoughts?
Thanks!
[adsi]
or WIM/CIM to query your local admin group? – TheMadTechnician