创建5列的csv文档(注意文件编码)
执行如下脚本
for /f "tokens=1,2,3,4,5 delims=," %a in (c: est.csv) do dsadd user "cn=%c,ou=mk,ou=icgroup,dc=icdomain,dc=com" -samid %d -upn %d@icdomain.com -ln %a -fn %b -pwd %e -disabled no
创建5列的csv文档(注意文件编码)
执行如下脚本
for /f "tokens=1,2,3,4,5 delims=," %a in (c: est.csv) do dsadd user "cn=%c,ou=mk,ou=icgroup,dc=icdomain,dc=com" -samid %d -upn %d@icdomain.com -ln %a -fn %b -pwd %e -disabled no