exists member whose (it as string as lowercase contains “bigfix\jesse”) of local group “Administrators”
exists member whose (account name of sid of it as lowercase contains “jesse”) of local group “Administrators”
exists member whose (domain name of sid of it as lowercase contains “bigfix” AND account name of sid of it as lowercase contains “jesse”) of local group “Administrators”
exists member whose (it as string as lowercase contains “domain\user”) of local group “Administrators”
In the relevance debugger and qna, I received the results I was expecting: True or False based on the user. When I copied the query from the debugger and executed this through the console, I received an as my result. The undefined result is:
exists ( string values of selects ( “PartComponent from Win32_GroupUser where GroupComponent = 'Win32_Group.Domain=%22” & computer name & "%22,Name=%22Administrators%22’ " ) of wmi ) whose ( it contains “Win32_Group.Domain=%22DOMAINHERE%22,Name=%22LOOKINGFOR%22” )
Not pretty (and it uses WMI) but it’s what we’ve been using in v5 to find out