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

Hi XPero,

this version grants access to the user Administrator, but not the group Administratoren (Administrators).

André

Share this post


Link to post
Share on other sites

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

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

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...