Add a user to a stand alone server

Discussion in 'Scripting' started by Oded Tal, Jul 25, 2004.

  1. Oded Tal

    Oded Tal Guest

    Hi,

    I'm new to scripting and I'm trying to find the resources for creating
    users. I found out how to add users to a domain, but I need to add a user to
    a stand alone server.

    How can I do it. does anybody knows where I can find that information?

    TIA

    Oded
     
    Oded Tal, Jul 25, 2004
    #1
    1. Advertisements

  2. For Visual Basic scripts (vbs) a goot starting point is MS Technet's
    Scripting Center located at:
    http://www.microsoft.com/technet/community/scriptcenter/default.mspx

    In particular, this script does what you need:
    http://www.microsoft.com/technet/community/scriptcenter/user/scrug92.mspx

    They also have all sample scripts available for download in single HTML help
    file:
    http://www.microsoft.com/downloads/...familyid=b4cb2678-dafb-4e30-b2da-b8814fe2da5a

    For NT command line batch scripts you can use "NET USER" command. To get
    help on this command refer to bult-in WIndows Help or issue following
    command at command prompt:
    NET HELP USER | MORE


    hth,
    Al.
     
    Alexander Suhovey, Jul 25, 2004
    #2
    1. Advertisements

  3. Hi

    Alexander gave you some good links.

    Here is another example creating a user using the ADSI's WinNT provider
    that sets some additional properties :

    http://groups.google.com/groups?selm=

    Remove the following line if you want the user to be able to
    change his/her password:

    lngFlags = lngFlags Or ADS_UF_PASSWD_CANT_CHANGE
     
    Torgeir Bakken \(MVP\), Jul 25, 2004
    #3
  4. Oded Tal

    Oded Tal Guest

    Thank you Alexander ands Torgier.

    Oded
     
    Oded Tal, Jul 26, 2004
    #4
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.