?
Solved

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

Posted on 2008-10-13
4
Medium Priority
?
1,876 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 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Had a business requirement to store the mobile number in an environmental variable. This is just a quick article on how this was done.
In the absence of a fully-fledged GPO Management product like AGPM, the script in this article will provide you with a simple way to watch the domain (or a select OU) for GPOs changes and automatically take backups when policies are added, removed o…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…
Suggested Courses

850 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