[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 17441
  • Last Modified:

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
0
deemehtani
Asked:
deemehtani
  • 3
2 Solutions
 
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

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now