I've decommissioned and domain controller (dc5) and then after a day renamed another domain controller to dc5.
Picking up problems on one of the root dc's where it keeps the serverreference attribute as the old dc's name. Thought this would be easy...
dcdiag throwing machine account errors. have already done a dcdiag /fixmachineaccount
* LIB-DC5-JHB Server Reference is incorrect! Should be CN=LIB-DC5-JHB1,OU=Domain Controllers,DC=something,DC=fin-za,DC=net, and is CN=LIB-DC5-JHB,OU=Domain Controllers,DC=something,DC=fin-za,DC=net.
ldap_search_sW failed with 2: The system cannot find the file specified.
......................... LIB-DC5-JHB failed test MachineAccount
When I go into adsiedit on the root dc and try and change the serverreference attribute it defaults back to the old name.