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

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?

thanks.

share|improve this question

netdom remove /d:DOMAINNAME, I think.

share|improve this answer
    
+1 - see Example 8 at technet.microsoft.com/en-us/library/cc776879%28WS.10%29.aspx – crb Jun 17 '09 at 13:56

netdom remove %computername% /domain:domainname.com

share|improve this answer

Your Answer

 
discard

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.