Windows Command Line – Create Local User and Add to Group

command-line-interfacewindowswindows-server-2008

What is the command line syntax to create a windows local user and add that user to a local group?

Can I do it with something short and simple with net commands?

Best Answer

Something like:

net user username password /add

net localgroup groupname username /add