Operating Systems

Create user from command line

net user [UserName [Password | *] [options]] [/domain]

net user [UserName {Password | *} /add [options] [/domain]]

net user [UserName [/delete] [/domain]]

Parameters
UserName
Specifies the name of the user account to add, delete, modify, or view. The name of the user account can have as many as 20 characters.
Password
Assigns or changes a password for the user's account. Type an asterisk (*) to produce a prompt for the password. The password is not displayed when you type it at the password prompt.
/domain
Performs the operation on the domain controller in the computer's primary domain.
options
Specifies a command-line option. The following table lists valid command-line options that you can use.


Was this article helpful?
0 0 (Login to rate)
Download PDF

Password Reset

Enter your email address below, and we'll send you a new password.

×