To answer your other question first: the reason that nothing shows up in the username field but does show up in the pre-win2k field is that you also need to specify the UPN on your dsadd command (use the -upn switch). A user should be able to login fine without it, but it is a very good idea to have it set properly.
Why didn't they include the option of using an input file in dsadd? No idea, but there are other tools that will let you use an input file (like csvde or ldifde), but unfortunately they don't let you set a password and so they add an extra step. To set permissions on a command line use cacls.exe. Phil -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of rubix cube Sent: Tuesday, January 11, 2005 1:59 AM To: [email protected] Subject: Re: [ActiveDir] Add users? Thank you Phil But how practical is this? Why did they change the old way? I mean apprently the dsaddusers has many if not all the input parameteres, but the fact that you don't pass them through an input file is depressing :( anyways, now I have teh dsaddusers script ready (for one test user) an dI have the exchmbx command read to create the mailbox, the only thing I want to automate more is to create mailboxes for users who starts with letter A-F in a specific mailbox store, and I-O in another one, and so on so forth, so is there a way to automate this too? besides making a home directory to each username and setting the correct permission, mkdir will be fine but setting the permission in a command line how? thanks a lot On Mon, 10 Jan 2005 10:30:49 -0500, Renouf, Phil <[EMAIL PROTECTED]> wrote: > The -uci switch you mention in dsadd isn't for input from a file, it > is referencing input from pipe (ie: | ). You can use information from > a tool like dsquery to pipe information to dsadd (you can pipe the DN > for an account for example). > > Phil > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of rubix cube > Sent: Monday, January 10, 2005 6:22 AM > To: [email protected] > Subject: Re: [ActiveDir] Add users? > > Ok I could see it now, sorry, thanks its working great I have only one > question, whats the use of the -uci option if I can't pass the > parameteres in an input file? and I have to make the command each time > I want to create a new user? > > Also in the addusers.exe windows2k tool, the username was used, now I > have to use UserDN and samid and nither seem to be working as a > username? > > thank you > 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/
