Is Domain Admin in Local Admin the Yes Else no

(imported topic written by RobertDiRosato)

Hello,

I’m a noob to BigFix and was wondering if someone could help me out.

I want to see if MYDOMAIN\Domain Admins is a member of the Local Admins group on windows.

If there display YES else NO

I found this code which will list all the local admins which is neat but doesn’t help me out.

if ((it contains “Win” AND it != “Win98” AND it != “WinME”) of name of operating system AND version of regapp “BESClient.exe” >= “6” AND exists local group “Administrators”) then (members of local group “Administrators” as string) else “Unsupported Configuration”

Thanks in advance for your help

(imported comment written by RobertDiRosato)

Thank you for all of you excellent replies.

I found it

This will look for domain admins and display “True” or “False”

exists members whose (it as string is equal to “YourDomain\Domain Admins”) of local group “Administrators”