Commands · Command
CommandWindows
net user
net user [username] [password] [/options]Creates, modifies, or displays local (or domain) user accounts from the command line.
// FLAGS
/addcreate a new user account/deleteremove a user account/active:nodisable an account without deleting it// EXAMPLE
net user jsmith /active:no — disables the jsmith account without deleting the account or its files.
// GOTCHA
net user username * prompts for a new password interactively (the * hides typed characters) — typing the password directly on the command line instead leaves it sitting in plain text in the shell history.
// RELATED COMMANDS