Jump to content

XPero's utilities


Recommended Posts


Posted

I think I've found another way of doing it. I will update the app soon this week or the next. Thanks for all Andre.

Posted

Boooh, It doesnt work :( I will be adding a textbox, so people can supply "Administrators" in their own language. :}

Posted (edited)

Hi XPero, you used "BUILDIN\Adminstrators" to grant control. This code snippet retrives the translated Name (in German: VORDEFINIERT\Administratoren"). I hope this will work. Could you include this code into your tool?

string getName(WellKnownSidType wksid)
{
SecurityIdentifier sid = new SecurityIdentifier(wksid, null);
NTAccount account = (NTAccount)sid.Translate(typeof(NTAccount));
return account.Value;
}


getName(WellKnownSidType.BuiltinAdministratorsSid)

Edited by MagicAndre1981

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...