The command line syntax for creating a user:
Create User: Net username password /add (e.g.: NET user test 123/add)
Elevated permissions: net localgroup user rights group user name /add (e.g.: net localgroup Administrator Test/add)
Delete users: NET user username/del (for example: NET user Test/del)
Second, the method of batch creation:
Using Excel software, create a batch of command line code (effects such as), then copy the code to a blank TXT file save (F column code), and then change the extension to. bat, and finally double-click the file, the system will start to automatically batch create users .
A |
B |
C |
D |
E |
String method (value in column F) |
F |
Net |
User |
Test1 |
123 |
/add |
=a1&b1&c1&d1&e1 |
NET user test1 123/add |
Net |
User |
Test2 |
124 |
/add |
=a2&b2&c2&d2&e2 |
NET user Test2 124/add |
Net |
User |
Test3 |
125 |
/add |
=a3&b3&c3&d3&e3 |
NET user Test3 125/add |
Net |
User |
Test4 |
126 |
/add |
=a4&b4&c4&d4&e4 |
NET user test4 126/add |
Net |
User |
Test5 |
127 |
/add |
=a5&b5&c5&d5&e5 |
NET user Test5 127/add |
Net |
User |
Test6 |
128 |
/add |
=a6&b6&c6&d6&e6 |
NET user Test6 128/add |
Net |
User |
Test7 |
129 |
/add |
=a7&b7&c7&d7&e7 |
NET user Test7 129/add |
Net |
User |
Test8 |
130 |
/add |
=a8&b8&c8&d8&e8 |
NET user Test8 130/add |
Net |
User |
Test9 |
131 |
/add |
=a9&b9&c9&d9&e9 |
NET user Test9 131/add |
Windows Bulk Create Users