Script to Join a Domain

Here is the scenario,

Establishing a new domain for a company, want all the user computers (mostly XP) to run a script to join to the new domain created.

Avoid going to each system and doing those steps manually.

It will be really great if a script is available.

--Dee
LVL 3
deemehtaniAsked:
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.

stevenlewisCommented:
0
deemehtaniAuthor Commented:
Well, I already know this, but the problem is that it works only with windows XP, what I am looking for is something that would work for XP, 2000 and also 98, not so worried about the 98 systems.

let me know, if you come across something that is universal, (I have tested netdom, doesn't work with 2000)

--Dee
0
iressCommented:
HI,

 Even after you have copied netdom.exe onto the 2000 box, didn't it work?

If yes, please ignore the below message.

**************************************************************

 In your script copy netdom.exe to the local systems Windows directory

 copy "\\UNC\netdom.exe"  "c:\windows\system32\"

then

netdom join %computername% /Domain:<Domainname>/UserD:<Username> /PasswordD:<Password> /OU:"OU=<Containername>,DC=Test,DC=com,DC=au" /REBoot:20

This will add you computer onto the domain and then reboot.
 
0
stevenlewisCommented:
0
stevenlewisCommented:
more
http://www.asu.edu/it/w2k/tools.html
the common thread I see, is you have to use the correct version of netdom.exe
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
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
Networking

From novice to tech pro — start learning today.