Windows New Set User Command Encyclopedia

2023 National Skills Competition - Windows command to create user password

1. Create a new user

net user username password/add

2. Change user password

net user username password


3. Users can modify the password attribute

net user username/passwordchg:yes


4. Users cannot modify the password attribute

net user username/passwordchq.no


5. Activate the user

net user username/active:yes


6. Add users to user groups

net localgroup "groupname" username /add


7. Add the user to the remote Zhuomian Q user group

net localgroup “Remote Desktop Users” username/add


8. Set the user password to never expire

wmic.exe UserAccount Where Name="Username" Set PasswordExpires="false


9. Delete user

net user username/delete

Guess you like

Origin blog.csdn.net/m0_59841503/article/details/129440423