MagicAndre1981 Posted June 19, 2007 Posted June 19, 2007 Hi XPero,this version grants access to the user Administrator, but not the group Administratoren (Administrators). André
XPero Posted June 20, 2007 Author Posted June 20, 2007 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.
MagicAndre1981 Posted June 20, 2007 Posted June 20, 2007 ok, no problem. I will test the new version asap after you release it
XPero Posted June 26, 2007 Author Posted June 26, 2007 Boooh, It doesnt work I will be adding a textbox, so people can supply "Administrators" in their own language.
XPero Posted June 26, 2007 Author Posted June 26, 2007 OK, beta 2 out in 1st post Please Andre test this one. I think it is fixed. Cheers
MagicAndre1981 Posted June 27, 2007 Posted June 27, 2007 no, it still doesn't work on my German Vista
MagicAndre1981 Posted June 27, 2007 Posted June 27, 2007 (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 June 28, 2007 by MagicAndre1981
MagicAndre1981 Posted June 28, 2007 Posted June 28, 2007 ok, I'll test it this evening, when I'm at home.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now