Thursday, April 15, 2010

Add Workstations To The Domain – Batch File

Here is an easy procedure to add computers to the Domain from an input file.  I am using the Netdom command to join the computer.  You can add all your computer names to the Computers.txt file.

image

Here is the Computer.txt file format:

[image[2].png]

Download

2 comments:

How the authentication will work,
do we need to provide credentials for the each workgroup computer?

Hello,

As you use these two lines :
FOR /f %%i in (C:\Computers.txt) DO (
netdom join /d:infralab.local %%i /OU:OU=Test,DC=infralab,DC=local

But where do I put my domain name here?

Post a Comment

Popular Posts

Share

Twitter Delicious Facebook Digg Stumbleupon Favorites More