Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2008-10-13
4
Medium Priority
?
1,875 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 18

Accepted Solution

by:
sk_raja_raja earned 2000 total points
ID: 22706105
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
ID: 22706109
. 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
ID: 22708308
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
ID: 31505622
Good Job and thanks again
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Auditing domain password hashes is a commonly overlooked but critical requirement to ensuring secure passwords practices are followed. Methods exist to extract hashes directly for a live domain however this article describes a process to extract u…
Here's a look at newsworthy articles and community happenings during the last month.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

610 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