I need a script that can read Group Information from a text file
(CSV) and create groups in the AD and then add members (from a CSV) to
these groups.
(even if it is in 2 different file no problem)
the idea is that we will extract some details from an AD then we need
to add the extracted details(CSV File) to another AD
Please help it is urgent

Re: VB Script for Reading from CSV file by mr_unreliable

mr_unreliable
Tue Mar 25 12:00:19 CDT 2008

85.reem@gmail.com wrote:
> I need a script that can read Group Information from a text file
> (CSV) and create groups in the AD and then add members (from a CSV) to
> these groups.

hi 85.reem, csv files are normally read using fso, (to read
line-by-line), and the "split" function, (to break down
the line into an array of the discrete values being separated
by the commas).

Is there something with either fso or the split that is causing
you a problem?

cheers, jw
____________________________________________________________

You got questions? WE GOT ANSWERS!!! ..(but,
no guarantee the answers will be applicable to the questions)


Re: VB Script for Reading from CSV file by MikeB

MikeB
Tue Mar 25 14:35:18 CDT 2008


"mr_unreliable" <kindlyReplyToNewsgroup@notmail.com> wrote in message
news:edXcGjpjIHA.2268@TK2MSFTNGP02.phx.gbl...
> 85.reem@gmail.com wrote:
>> I need a script that can read Group Information from a text file
>> (CSV) and create groups in the AD and then add members (from a CSV) to
>> these groups.
>
> hi 85.reem, csv files are normally read using fso, (to read
> line-by-line), and the "split" function, (to break down
> the line into an array of the discrete values being separated
> by the commas).

Also read using ADODB:

"Driver={Microsoft Text Driver (*.txt; *.csv)};Dbq=" & sFolder &
";Extensions=asc,csv,tab,txt;"

I use it all the time.


> Is there something with either fso or the split that is causing
> you a problem?
>
> cheers, jw
> ____________________________________________________________
>
> You got questions? WE GOT ANSWERS!!! ..(but,
> no guarantee the answers will be applicable to the questions)
>



Re: VB Script for Reading from CSV file by Pegasus

Pegasus
Tue Mar 25 16:26:23 CDT 2008


<85.reem@gmail.com> wrote in message
news:9dfee243-b070-44cb-865c-9553d108e82d@b1g2000hsg.googlegroups.com...
>I need a script that can read Group Information from a text file
> (CSV) and create groups in the AD and then add members (from a CSV) to
> these groups.
> (even if it is in 2 different file no problem)
> the idea is that we will extract some details from an AD then we need
> to add the extracted details(CSV File) to another AD
> Please help it is urgent

Have a look at this link:

Create User Accounts from Information in an Excel Spreadsheet
http://msdn2.microsoft.com/en-us/library/ms974568.aspx