Add a user to a stand alone server

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

  1. Oded Tal

    Oded Tal Guest


    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?


    Oded Tal, Jul 25, 2004
    1. Advertisements

  2. For Visual Basic scripts (vbs) a goot starting point is MS Technet's
    Scripting Center located at:

    In particular, this script does what you need:

    They also have all sample scripts available for download in single HTML help

    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:

    Alexander Suhovey, Jul 25, 2004
    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 :

    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
  4. Oded Tal

    Oded Tal Guest

    Thank you Alexander ands Torgier.

    Oded Tal, Jul 26, 2004
    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.