Torgeir
Thu Oct 23 15:37:33 CDT 2003
Eimis wrote:
> I need a script to join computer to domain. All the workstations are win2k
Hi
The JoinDom freeware utility found at tip 5956 at
http://www.jsiinc.com/reghack.htm can be used.
Or you can use the command line utility netdom.exe from MS.
Latest version of netdom.exe can be downloaded from here:
Windows 2000 SP4 Support Tools
http://www.microsoft.com/windows2000/downloads/servicepacks/sp4/supporttools.asp
There came one updated version with SP2 as well, but I would be very surprised
if the SP4 netdom version do not work on pre SP4 computers.
More info here as well:
From: Torgeir Bakken
Subject: Re: Join Workgroup then join domain, via WSH?
Newsgroups: microsoft.public.scripting.wsh
Date: 2002-09-09 14:03:29 PST
http://groups.google.com/groups?selm=3D7CFEC8.556EDB2B%40hydro.com
Some notes:
Netdom.exe needs to be run with an account that is member (directly or
indirectly) of the Administrators group on the local computer, unless using
the /UserO switch.
The server service needs to be available and not disabled or removed for
netdom to work, see this thread for more info about this:
Subject: Re: Join Computer to a Domain with NetDom
http://groups.google.com/groups?th=a180a5e6b463d276
--
torgeir
Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of the 1328 page
Scripting Guide:
http://www.microsoft.com/technet/scriptcenter