Home All Groups Group Topic Archive Search About

How to retrieve the local admin group name?

Author
14 Nov 2006 12:38 PM
Ultimus
The question sounds simple, but appearantly it is not...

How can I get the name of the local administrators group?

The problem is, that with different Windows languages the name differs.
In english the name is "Administrators", in german "Administratoren" in
spanish "Administratores" etc...

I also have the same problem with the "Distributed COM Users" group...

Any idea?

Thanks in advance!

Author
14 Nov 2006 1:59 PM
Andrew Morton
Ultimus wrote:
> The question sounds simple, but appearantly it is not...
>
> How can I get the name of the local administrators group?
>
> The problem is, that with different Windows languages the name
> differs. In english the name is "Administrators", in german
> "Administratoren" in spanish "Administratores" etc...
>
> I also have the same problem with the "Distributed COM Users" group...
>
> Any idea?

Could you use the SID S-1-5-32-544?
"Well-known security identifiers in Windows operating systems":
http://support.microsoft.com/default.aspx/kb/243330

Andrew
Author
14 Nov 2006 3:30 PM
Ultimus
Thanks, Andrew.

This here finally solved my problem:
http://www.microsoft.com/technet/scriptcenter/resources/qanda/nov05/hey1102.mspx

Cheers,
Thomas