title: How to remove a server from Active Directory when the connection fails?
body: <p>I have a server whose AD account got crazy; log on would take hours and not all DCs showed the computer account. Now it only boots if disconnected from the network. I am trying to remove it from the domain but get aa timeout or if it is connected I get an error message "A remote procedure call is already in progress for this thread". I deleted the computer account from the domain.</p>
  
  <p>I tried using "netdom remove computername /force" and deleting the machine account in the registry (HKLM/security/secrets/$machine.acc) but still the server remains in the domain.</p>
  
  <p>Is there a documented method to remove a server (or workstation) from a domain that is no longer available?</p>