User accounts in windows XP - Programmers Heaven

Howdy, Stranger!

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

Categories

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.