Possible to add workstation to domain from the command line

command-line-interfacewindows-xp

Is there a way to add a XP workstation to a domain via the command line, rather than through My Computer Properties?

If this can't be done from the command line, is there any other simple way (a script) of doing so?

Best Answer

From the MS article they suggest:

netdom join ComputerName /domain:DomainName /userd:User /passwordd:UserPassword

The other good options is if you're installing you can always add these options to the installers answer file.