Solved

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

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

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
AD LDAP LDS 3 47
Administrator Accounts Not Visible from Third Party AD-connected Systems 2 42
Creating and Connection two new domains 5 75
MDM vs GPO 16 23
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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 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…

929 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

10 Experts available now in Live!

Get 1:1 Help Now