active-directoryregistrywindows-server-2008bdc

How to remove a server from Active Directory when the connection fails?


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.

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.

Is there a documented method to remove a server (or workstation) from a domain that is no longer available?


Solution

  • Is this only happening on this one computer? Deleting the computer account from ADUC should work. What is running on this server (exchange? domain controller? dns?)

    Edited to add:

    I would try forcing replication between DCs. Open ADUC. Goto Sites/yourSite/NTDS Setting. Right-click on the connection in the details pane, and select Replicate Now.

    It's a little confusing as to whether you said the computer still shows in ADUC. If forcing replication changes nothing, then I'm afraid you'll have to reimage this computer.