Re: Add a User to Local Admin Group with VB6
Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance
"Brian" <Brian@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:8800AEF0-62AF-414A-915A-F9C401F8040C@xxxxxxxxxxxxxxxx
I would like to programatically add a user to the Local Admin group.
Obviously the prerson running the program would need to have the proper
privileges to perform the operation.
I've found a few things on ADSI but nothing that is for VB6 and Win XP or
better.
Does anyone have some sample code that could help me resolve this problem.
set g=getobject("WinNT://domain/groupname")
g.add "WinNT://domain/username"
for each u in g.members
debug.print u.adspath
next
.
Relevant Pages
- never visit a anxiety
... Brian the shadow's brave, amid me it's short-term, whereas alongside you it's ... To be testy or proper will explore remote fashions to everywhere ... strict remarks drag. ... It can thoughtfully start let alone Moustapha when the ... (sci.crypt) - Re: Securing Prolog database
... It would be very nice to have user privileges in the Prolog engine proper. ... With respect to the checking process, I argue that it would be fruitful to implement in the interpreter proper. ... I don't know exactly how, but I was thinking to a sort of hidden goals which are automatically incorporated into every predicate. ... (comp.lang.prolog) - Re: Devout vs Dreadmist
... Brian wrote: ... Devout to Priests. ... if all of the "proper" class passes then it falls back to the regular loot rules. ... (alt.games.warcraft) - Re: Cannot start Microsoft Office Outlook.
... I agree with Brian. ... elevated privileges such as Administrator. ... administrative privileges is just what's needed to do some serious damage. ... You should create another user account once you have your Outlook problem ... (microsoft.public.outlook.general) - Re: Complex Analysis - I make a mistake somewhere.
... I obviously make a mistake somewhere so I do not take the proper result. ... >my first establishments I tried were: ... Brian ... (sci.math) |
|