Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

User accounts in windows XP

leo128leo128 Posts: 1Member
Hi All!

I wonder how to programmatically create user accounts in windows xp (home or pro)...

API? complex scripts?

Any idea?

Thank You!

Comments

  • sufs_LNDsufs_LND Posts: 23Member
    : Hi All!
    :
    : I wonder how to programmatically create user accounts in windows xp (home or pro)...
    :
    : API? complex scripts?
    :
    : Any idea?
    :
    : Thank You!
    :

    you can use

    system("your command here")
    you must have the stdlib.h file included
    with the following commands:
    net user "your username" /add | creates an account
    net user "your username" * | prompts you for a new password

    if I want to create an user named Chad I would write:
    [code]
    system("net user Chad /add");
    [/code]

    if you want to have som more info on how to manage user accounts from the command prompt go in cmd.exe and type "net help user"

    remember that you can use these commands in c++ with the system("") function!

    :)
Sign In or Register to comment.