I'm using the Win32 method called "LookupAccountName" in order to translate name to SID.
When I try to translate the name "Administrators" I get an SID but when I try to translate the name "Account Operators" I get the following error:
ERR#1332 - No mapping between account names and security IDs was done
wmic group where (name='administrators' and domain='%userdomain%') get
wmic group where (name='Account Operators' and domain='%userdomain%')
This MSDN link briefly explains the difference between the two (look for SIDs:
Description: A built-in group that exists only on domain controllers.
The errors you get (either from
wmic) mean that the
Account Operators group is not found.