Automating Adding Multiple PCs to a Domain

Hi,

How would i add multiple PCs to a Domain? Lets say 300

Cheers

Matt
YellowbusTeamAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

NVITCommented:
Note: The /user: and /password: switches pertain to a domain admin

1. Make a computers.txt file containing the computer names. e.g.
computer1
computer2

Open in new window


2. Make a .bat file to join the computers to domain
for /f %%a in (computers.txt) do (NETDOM /Domain:MYDOMAIN /user:domainadminuser /password:domainadminpassword MEMBER %%a /JOINDOM)

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
YellowbusTeamAuthor Commented:
Would this be run on the DC?
0
NVITCommented:
It can be run on a workstation.
0
Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

YellowbusTeamAuthor Commented:
I want to be able to sit at 1 PC and run it from there on all of the other PCs if there are 300 hundred PCs it may take a while to run it on each individually?

Cheers
0
NVITCommented:
Assuming each computer can access the domain controller, each call in the .bat file to the NETDOM command should be quick.

Try a test to see if it works.
- Logon the workstation as domain admin.
- Add 1 or 2 computers to computers.txt
- Open a CMD prompt
- Make the .bat file with code I posted.
- Run the .bat file
0
Michael-BestCommented:
Suggest you click:
http://www.experts-exchange.com/newRequest.jsp?qid=28685594

To request your question be moved from "Automotive" topics to the correct / relevant topics designation, that will get further expert input on this.
0
LeeTutorretiredCommented:
I've requested that this question be deleted for the following reason:

Not enough information to confirm an answer.
0
NVITCommented:
Answers ID: 40812793, ID: 40813167, and ID: 40819599 answers the question.
1
Mr. WolfeCommunity Support ModeratorCommented:
I've requested that this question be deleted for the following reason:

Author abandoned.  Unverified answers.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Automotive

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.