Adding Multiple Computers into Active Directory from a text .txt file

I'm needing to add a text file of computers into Active Directory

I've looked at these 2 links
Here is a link with a script for this

It does not work and here is a link from someone else that had the same problem

Is there a working script that I can use and verify or another method.
I have about 4500 computer I need to create and am not excited about the prospect of doing this manually.

Best Regards,
Who is Participating?
sk_raja_rajaConnect With a Mentor Commented:
1.Ref this post and look in to the comment by KCTS, explaining clearly
2.Check out here:
3.You can easily import and export Computer account using CSVDE.

CSVDE -F <File Name Here> -S <Domain Controller Name Here> -R "(objectClass=computer)"

CSVDE -F C:\Computers.csv -S SRV01.TRAINING.COM -R "(objectClass=computer)"

For more Info:
. Open DSA.MSC (active directory users and computers)
2. Right click "saved queries" (the 'folder' above your domain)
3. New => query
4. Enter a name and description
5. Click "define query"
6. Select second tab (computers)
7. Select the drop down list of 'Name' and choose 'has a value'
9. OK => OK
10. To select the information that you need to see: Open the 'view menu' => add/remove columns => edit the list => OK
12. right click your query => 'import list'
13. Choose location, file name and file type
vibesmasterAuthor Commented:
Thanks sk raja raja,

csvde -i -f computers.csv

is the right command

-i is for import

Thanks again
vibesmasterAuthor Commented:
Good Job and thanks again
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.