|
Get Strings from a Textfile
- getStringsfromaTextfile.bat
rem massenimport -> benutzer anlegen
rem samaccountname;vorname;nachname
rem hpmeier;Hans Peter;Meier
rem Vorsicht bei Umlauten und Doppelnamen
FOR /F "tokens=1,2,3 delims=;" %%i in (domuser.csv) do @echo %%i %%j %%k
rem FOR /F "tokens=1,2,3 delims=;" %%i in (domuser.csv) do @dsadd user "CN=%%i,OU=Users,DC=my,DC=dom,DC=ain" -samid %%i -fn "%%j" -ln "%%k" -display "%%j %%k" -pwd startPasswort01 -mustchpwd yes -disabled no
rem FOR /F "tokens=1,2,3 delims=;" %%i in (domuser.csv) do @dsmod user "CN=%%i,OU=Users,DC=my,DC=dom,DC=ain" -display "%%j %%k"
|
|