Solved

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

Posted on 2008-10-13
4
1,871 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 500 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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

A hard and fast method for reducing Active Directory Administrators members.
Group policies can be applied selectively to specific devices with the help of groups. Utilising this, it is possible to phase-in group policies, over a period of time, by randomly adding non-members user or computers at a set interval, to a group f…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

691 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