It may be easier to just use a batch file created with Excel. eg:

cell A1 contains:
="net user user"&ROW()&" "
&CHAR(RAND()*26+65)&CHAR(RAND()*26+65)&CHAR(RAND()*26+65) &" /add
/profilepath:\\server1\profiles\user"&ROW()& " /domain"

and you then fill that down for 1500 rows. Copy to notepad and save as a
batch file. Run it to create the users. (This will give a password of 3
random letters - change for whatever you want). You can also add
paramters like /homedir to specify the homedirectory (but note that this
won't create them)

Alternatively, if you want to do things like put them in specific OUs
then you can create the data in Excel much like this but using separate
columns for each field (username, OU, password etc). Save this as a CSV
and use Perl to parse it to the form needed by ldifde.

Steve

-----Original Message-----
From: Mike Hogenauer [mailto:[EMAIL PROTECTED] 
Sent: 15 January 2004 06:09
To: [EMAIL PROTECTED]
Subject: [ActiveDir] LDIFDE and Perl...

I need to import 1500 user accounts into a test environment, I would
like to use LDIFDE.
First is there an easy way to batch or create dummy accounts for a test
environment without having to type each one, and second can any of this
be done with Perl? 

I will also be consulting the Cookbook! 

Thanks in advance. 

Mike 


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/

Reply via email to