Rem adds a user with the specified user name and password./expires: Never indicates that the Account will never expire;
Net user namePassword/Add/expires: Never
Rem deletes a user.
Net user username/delete
Rem deletes the user from the users group;
Net user admin_temp admintemp/Add/expires: Never
Rem adds the user to the specified group.
Net localgroup username/Add
Rem adds domain users to/from the Administrator Group
Net localgroup administrators app5173.com \ g_anquan/Add
Rem net localgroup administrators app5173.com \ g_anquan/delete
---------------------------------------------------------------------------------
If you need to specify the option when adding a user, refer to the following content:
Rem net user myuser/active: No disable myuser user
Rem net user myuser/active: Yes activating myuser user
Rem net user myuser/passwordchg: Yes user myuser Can Change Password
Rem net user myuser/passwordreq: Yes user myuser must have a password
Rem net user myuser/expires: Never user myuser never expires
Pause
Replace the aboveCodeSave it to the BAT file and run it!