Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

I need to unjoin a computer from the domain preferably form the command line. I know how to use netdom.exe to join a machine to a domain. Is there a corresponding way to un-join it?


share|improve this question

netdom remove /d:DOMAINNAME, I think.

share|improve this answer
+1 - see Example 8 at – crb Jun 17 '09 at 13:56

netdom remove %computername% /

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.