windows server 2008 R2 Command line mode How to create user and set password
- 2020-06-15 10:51:34
- OfStack
1. Use the command line to create the user and set the password
(1) Standard Format:
net user username password / add
For example: Create a user named lijunxuan with a password of Abc_123
net user lijunxuan Abc_123 /add
2. Use the command line to change the password for your old account
(1) Standard Format:
net user username password
For example: set user lijunxuan's password to Abc_456
net user lijunxuan Abc_456
3. Create a local group using the command line
(1) Standard Format:
net localgroup groupname /add
For example: Add a group named sales
net localgroup sales /add
4. Use the command line as a local group
(1) Standard Format:
net localgroup groupname username /add
For example: Add the user name lijunxuan to the administrators group
net localgroup administrators lijunxuan / add