After provisioning a virtual machine to replace a lost VM, I tried to rename the new VM with the old VM name and then attempted to join the domain controller but was greeted with an error message:
“Can`t rename computer. Computer account is already exists”
1) I had to get on the domain controller and launched the Server Manager on Windows 2012 Server then launched Active Directory Users and Computers
2) Go to [domain.com] –> Computers and remove the old computer name
3) Launch DNS and remove any records associated with the old computer name
You need to delete the computer object from the AD & records from the DNS, wait at least one replication cycle to be completed for the changes to be reflected to any other DC before you can reuse the name.