Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Join computer to a domain

0 views
Skip to first unread message

Steve

unread,
Dec 3, 2003, 2:25:15 PM12/3/03
to
Anyone know how to write a script that will join a
computer to a domain in AD? A Windows 2000 machine.

Torgeir Bakken (MVP)

unread,
Dec 3, 2003, 2:33:00 PM12/3/03
to
Steve wrote:

> Anyone know how to write a script that will join a
> computer to a domain in AD? A Windows 2000 machine.

Hi

You can use the command line utility netdom.exe from MS to do this.

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 SP3 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 (see section "Command line, join domain")

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


0 new messages