Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 



XPero

XPero's utilities

Recommended Posts


XPero    0

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.

Share this post


Link to post
Share on other sites
XPero    0

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

Share this post


Link to post
Share on other sites
XPero    0

OK, beta 2 out in 1st post :) Please Andre test this one. I think it is fixed. Cheers

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

×