Importing user accounts from a Text file

Z

ziplock007

I am wanting to add a list of about 125 user id's and passwords to
my Active Directory. The only format that the information was
provided to me was in a text file.

someuser:pass
someuser2:pass2
someuser3:pass3
etc...

I have seen tools such as CSVDE but haven't had much luck. Any
suggestions?
 
H

Herb Martin

I am wanting to add a list of about 125 user id's and passwords to
my Active Directory. The only format that the information was
provided to me was in a text file.

someuser:pass
someuser2:pass2
someuser3:pass3
etc...

I have seen tools such as CSVDE but haven't had much luck. Any
suggestions?

Write a script using DSAdd (or even Net User) that loops through
the text file with a 'For /f "delims=:" ... in (FILE) do COMMAND'
command (/f makes it read from a text file, and you can change the
delimiters as shown.

Or write a VB etc. Script (you can get a lot of help from the
Script-o-Matic download, available free at Microsoft; Google:

[ site:microsoft.com "script-o-matic" ]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top