Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CSV Bulk Import?!

Status
Not open for further replies.

TheMisio

Technical User
Sep 26, 2005
229
BE
Fellow Techies,

I’m trying to bulk import users into AD using CSV. However, every time I runt the import it fails with the “Invalid number of attributes in input file”

I’ve been trying to import it using examples from the net, sometimes using only three attributes (example below):

DN,objectClass,userAccountControl,sAMAccountName,userPrincipalName
"CN=User1\, Example1,OU=ACCOUNTS,DC=childdomain,DC=mydomain,DC=net",user,512,user1e,user1.example1@mydomain.co.uk
"CN=User2\, Example2,OU=ACCOUNTS,DC=childdomain,DC=mydomain,DC=net",user,512,user2e,user2.example2@mydomain.co.uk
"CN=User3\, Example3,OU=ACCOUNTS,DC=childdomain,DC=mydomain,DC=net",user,512,user3e,user3.example3@mydomain.co.uk

I’ve tried leaving only the DN, objectClass and sAMAccountName attributes but it fails with the same error message.

Does anyone know what the problem might be?

Regards,

Michael
 
How are you trying to do this import? VBScript? Something else?

Thanks,
Andrew

[medal] Hard work often pays off over time, but procrastination pays off right now!
 
acl03,

Just a standard csvde -i command and supply the data in the text file.

Regards,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top