Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

2 Answers 2

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.