Solved

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

Posted on 2008-10-13
4
1,864 Views
Last Modified: 2012-05-05
Greetings,
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
http://aset.its.psu.edu/docs/windows/active_directory/howtos/how_to_pc_ou.html

It does not work and here is a link from someone else that had the same problem
http://www.computing.net/answers/windows-2003/addingmultiple-computers-in-active-/4953.html

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,
0
Comment
Question by:vibesmaster
  • 2
  • 2
4 Comments
 
LVL 18

Accepted Solution

by:
sk_raja_raja earned 500 total points
Comment Utility
1.Ref this post and look in to the comment by KCTS, explaining clearly
http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Server/2003_Server/Q_22864019.html
2.Check out here:
http://support.microsoft.com/kb/555634
http://support.microsoft.com/kb/555637
3.You can easily import and export Computer account using CSVDE.

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

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

For more Info:
http://www.computerperformance.co.uk/Logon/Logon_CSVDE.htm
http://www.computerperformance.co.uk/Logon/Logon_CSVDE_Export.htm
0
 
LVL 18

Expert Comment

by:sk_raja_raja
Comment Utility
. 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
0
 

Author Comment

by:vibesmaster
Comment Utility
Thanks sk raja raja,

csvde -i -f computers.csv

is the right command

-i is for import

Thanks again
0
 

Author Closing Comment

by:vibesmaster
Comment Utility
Good Job and thanks again
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Resolve DNS query failed errors for Exchange
Find out how to use Active Directory data for email signature management in Microsoft Exchange and Office 365.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now