How can I determine the name of the local Administrators group in Vista? This can vary depending on the operating system language.
+2
A:
As Richard proposes, use the wellknown sid to find the group.
var adminGroupSid = new SecurityIdentifier("S-1-5-32-544");
var adminGroup = (NTAccount)adminGroupSid.Translate(typeof(NTAccount));
var adminGroupName = adminGroup.Value;
Simon Svensson
2009-03-06 11:32:37