How do I create a user from the command line

  • Thread starter Thread starter Randy
  • Start date Start date
R

Randy

Hi,

I have a program that need to create a user from the command line. This
could be on XP, 2000, 2003. It could be on a domain.

How do I do this? What other things will I have to do? Is it possible
to detect if this is being done on a domain or not?

Thanks

Randy
 
Thanks for the suggestions. This approach seems to have some drawbacks.

net user doesn't seem to allow you to supply the domain administrators
name and password incase the current user doesn't have permission to add
users to the domain.

You have to be logged into the domain you are trying to add a user to.


Ideally I would be able to supply all of the following:
user name,
password,
password never expire,
security group(s) to assign the new user to,
domain name,
domain administrator user name,
domain administrator password


Is there another utility that does all that?

Thanks

Randy
 
Back
Top