markman Posted November 8, 2007 Posted November 8, 2007 I am trying to set up a spreadsheet to bulk import our schools users onto our new server, I can get it to import username etc and into the correct OU but I can't get it to accept groups. Any ideas? Also can you add password? I don't fancy imputting 1200 users.
unixman Posted November 8, 2007 Posted November 8, 2007 CSVDE will not set passwords, you need dsadd. What I do is setup my csv file on a Unix box, and run it through an awk script to produce a couple of .bat files, which I then transfer to the M$ box and run. Samples lines from each file (there will be one per user). mkuser.bat (the user will logon with gorag07 and password kleys47) dsadd user "CN=Gora George,OU=07,OU=Students,DC=dt,DC=local" -samid gorag07 -ln Gora -fn George -pwd kleys47 -hmdir \\dt-server\gorag07$ -hmdrv H: -loscr student.bat mkhome.bat cd \StudentHomeDirs mkdir gorag07 cacls gorag07 /e /c /g gorag07:f
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now