Using Net user command, administrators can manage user accounts from windows command prompt. Below are some examples on how to use this command.
Add a domain user account:
Net user /add username newuserPassword /domain
Add new user on local computer:
Net user /add username newuserPassword
Disable/Lock a domain user account:
Net user username /ACTIVE:NO /domain
To enable/unlock a domain user account:
Net user loginid /ACTIVE:YES /domain
Prevent users from changing their account password:
Net user username /Passwordchg:No
To allow users to change their password:
Net user username /Passwordchg:Yes
To retrieve the settings of a user:
Net user username
by SRINI
İlk Yorumu Siz Yapın