Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 6 down vote accepted

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.

share|improve this answer
+1 for including syntax – Kara Marfia May 26 '09 at 0:29

This Microsoft Article describes joining computers to the domain via command line or script.

share|improve this answer

Also check out using Sysprep for fresh installs. I've had good results with it.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.