The dsadd utility doesn't work with a csv file, if you want to use dsadd to bulk create users you will need to work up a .cmd file with each line having a dsadd command. Here we do this with Excel since our format is always the same we have predefined columns for the information that we need then we concatenate them into one column which pieces together the dsadd command so all you do is copy that column into a .cmd file and run it.
Not too elegant, but it works. If you want to use a CSV file specifically then take a look at CSVDE. Be aware though that this won't allow you to set a password during user creation, you'd need to do that afterwards with another tool. Phil -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of rubix cube Sent: Tuesday, January 04, 2005 6:04 AM To: ActiveDir@mail.activedir.org Subject: Re: [ActiveDir] Add users? Thank you Sakari, interesting. So what are we going to do about it? how about if you post the instructions to modify the schema to show Employee ID in ADUC :) ? When I try to use the dsadd and pass an input file that has the users I want to create it says worng data format, C:\>dsadd user -uci dsaddtest.csv dsadd failed:Value for `Target object for this command' has incorrect format. type dsadd /? for help. C:\> What should I do? also I get the same error if the file fromat is in .txt? thanx r.c. On Tue, 4 Jan 2005 01:50:11 +0200, Sakari Kouti <[EMAIL PROTECTED]> wrote: > Hi, > > Another source for ADUC-to-LDAP mappings is on our book's Web site at > http://www.kouti.com/tables.htm > > There is a direct HTML version, but the Excel version (included in a ZIP file) is much more convenient. It's a Windows 2000 version, but Windows Server 2003 didn't change the ADUC fields at all, so for this scope it's still current. > > Even though I made it I dare to recommend it. Among other things, it also documents what's in each property set. > > Who volunteers to write a control that adds a new tab to ADUC, including the EmployeeID? And better still, that control could enable you to modify any string or integer attribute that you define. > > Yours, Sakari > List info : http://www.activedir.org/mail_list.htm > List FAQ : http://www.activedir.org/list_faq.htm > List archive: > http://www.mail-archive.com/activedir%40mail.activedir.org/ > List info : http://www.activedir.org/mail_list.htm List FAQ : http://www.activedir.org/list_faq.htm List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/ List info : http://www.activedir.org/mail_list.htm List FAQ : http://www.activedir.org/list_faq.htm List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/