CMD: Net User to manage user accounts

System administrators can use the command NetUser from the Windows command line to manage user accounts.

Here are some examples of use internet user

Add a user account to the domain:

Net user /add nombre_usuario contraseña /domain

Add a new user to the local computer:

Net user /add nombre_usuario contraseña

Disable/lock domain user account

Net user nombre_usuario /ACTIVE:NO /domain

Enable Domain User Account

Net user nombre_usuario /ACTIVE:YES  /domain

Prevent users from changing their password

Net user nombre_usuario /Passwordchg:No

Allow users to change their password

Net user nombre_usuario /Passwordchg:Yes

Get user settings

Net user nombre_usuario

Example of using NetUser

C:UsersFernando>net user Fernando
User name                    Fernando
Full Name
User's comment
Country/region code          000 (System Default)
Account active               Yes
Account expires              Never

Password last set            12/2/2018 12:03:29 AM
Password expires             Never
Password changeable          12/2/2018 12:03:29 AM
Password required            No
User may change password     Yes

Workstations allowed         All
Logon script
User profile
Home directory
Last logon                   9/26/2020 7:57:57 AM

Logon hours allowed          All

Local Group Memberships      *Administrators
Global Group memberships     *None
The command completed successfully.