Re: How to add system users and groups by programming?

From: William DePalo [MVP VC++] (willd.no.spam_at_mvps.org)
Date: 03/25/05


Date: Thu, 24 Mar 2005 22:48:38 -0500


"cyshao" <adadad@263.net> wrote in message
news:u4xrbnOMFHA.4080@TK2MSFTNGP09.phx.gbl...
> How to add system users and groups by programming?

IMO, the simplest (and oldest way) to add a user is with NetUserAdd(). For
groups, check the docs for NetGroupAdd() and NetLoclGroupAdd().

You might also want to read up on ActiveDirectory

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/adsi/adsi/active_directory_service_interfaces_adsi.asp

which is scriptable as well as programmable.

Regards,
Will



Relevant Pages

  • Hackers
    ... Get a hardware firewall, if you do not already have ... hardware firewall (best option, IMO). ... >Security sites can't scan my computer, ... >his programming out (he changes my programming by ...
    (microsoft.public.security)
  • Re: Air America and Al Franken deathwatch (Bruce Morgen lies once again!)
    ... IMO - the Al Franken Show is much better ... He has Catherine Lanpher to keep him on ... My only complaint is that they have too much programming, i.e., ... So there - a liberal criticizes other liberals. ...
    (alt.guitar.amps)
  • Re: Air America and Al Franken deathwatch (Bruce Morgen lies once again!)
    ... IMO - the Al Franken Show is much better ... He has Catherine Lanpher to keep him on ... My only complaint is that they have too much programming, i.e., ... >I don't like Randy Rhodes on the other hand. ...
    (alt.guitar.amps)
  • Re: Beginning C++
    ... > hoping nobody tells me to take courses. ... > and other programming basics drove me insane. ... IMO the first is more targeted to the absolute programming novice. ... Oh, and as with everything new, Practice, Practice, Practice. ...
    (alt.comp.lang.learn.c-cpp)
  • Re: Finding and Removing Duplicate Entries
    ... The simplest and fastest way with a document of only 35 pages is to do it by ... eye. ... Programming this gets very involved :-) ... Consultant Technical Writer ...
    (microsoft.public.word.docmanagement)