批量创建AD用户
示例脚本与数据文件
for /f “tokens=1,2,3” %a in (C:\Data\demouser.txt) do dsadd user -ln %a -fn %b -display %c “cn=%c,cn=users,dc=org,dc=corp” -samid %c -upn %c@org.corp -pwd password! -pwdneverexpires yes -disabled no
Test 01 Test01
Test 02 Test02
Test 03 Test03
Test 04 Test04
Test 05 Test05
Test 06 Test06
Test 07 Test07
Test 08 Test08
Test 09 Test09
Test 10 Test10
Test 11 Test11
Test 12 Test12
Test 13 Test13
Test 14 Test14
Test 15 Test15
Test 16 Test16
Test 17 Test17
Test 18 Test18
Test 19 Test19
Test 20 Test20
Test 21 Test21
Test 22 Test22
Test 23 Test23
Test 24 Test24
Test 25 Test25
Test 26 Test26
Test 27 Test27
Test 28 Test28
Test 29 Test29
Test 30 Test30
Test 31 Test31
Test 32 Test32
Test 33 Test33
Test 34 Test34
Test 35 Test35
Test 36 Test36
Test 37 Test37
Test 38 Test38
Test 39 Test39
Test 40 Test40
Test 41 Test41
Test 42 Test42
Test 43 Test43
Test 44 Test44
Test 45 Test45
Test 46 Test46
Test 47 Test47
Test 48 Test48
Test 49 Test49
Test 50 Test50