Link to home
Start Free TrialLog in
Avatar of jering
jering

asked on

Join XP clients to new domain using NETDOM

Scenario:
Win 2003 Standard SP1 domain
Windows XP Pro clients


The 2k3 domain is a new domain, the clients are joined to an old NT4 domain.

Planning to script the client-joining to the new domain using netdom.exe from the support tools.

Also aware of the use of usmt to copy the client profiles from the old domain to the new, but at first I want to create a basic script that simply joins the computers to the new domain.

Anyone done this before?
VBscript is the most handy tool for the job?
ASKER CERTIFIED SOLUTION
Avatar of Chris Staunton
Chris Staunton
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jering
jering

ASKER


"The parameter /Domain was unexpected."
What am I doing wrong? Tried several combinations...

What`s the point of pre-create the computer accounts? To manage which OU`s they`re put in? This can be done with the [/OU:ou path].


NETDOM ADD machine /Domain:domain [/UserD:user] [/PasswordD:[password | *]]
           [/Server:server] [/OU:ou path] [/DC]
Avatar of jering

ASKER

D:\suptools2k3>netdom join %computername% /Domain:domain.contoso.com /
Userd:domain\administrator /Passwordd:password /UserO:administrator /PasswordO:password
The command completed successfully.


This one worked. Will also use the /OU and /reboot parameters and run this command from a batch file.

Now the next issue is to include USMT somehow....maybe call a *vbs from the batch? Any ideas?