Re: How to obtain the group name for "Administrators"

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Eugene Gershnik (gershnik_at_hotmail.com)
Date: 02/07/05


Date: Mon, 7 Feb 2005 10:53:05 -0800

Harald wrote:
> Hi,
> depending on the OS language the Administrators group has different
> names. Some functions require the groups name as input. So I'd like
> to obtain the specific name of the Administrators group on the
> current machine. Any idea? Must have something to do with
> "DOMAIN_ALIAS_RID_ADMINS" or so... - Thanks, Harald

Use LsaLookupSids() or LookupAccountSid(). The SID for Administrators is
given in MSDN or you can use CreateWellKnownSid()

--
Eugene


Relevant Pages

  • Re: Getting the SID for the Administrators group
    ... Is there a way to get the SID for the Administrators group without ... > LookupAccountName()? ... Is there a more generic way to do this that will work on all language ...
    (microsoft.public.platformsdk.security)
  • Getting the SID for the Administrators group
    ... Is there a way to get the SID for the Administrators group without using ... LookupAccountName()? ... Since this requires a string for the account name, ... Is there a more generic way to do this that will work on all language ...
    (microsoft.public.platformsdk.security)