When attempting to perform a domain join where you have pre-created the computer accounts in the target domain, or when a computer tries to rejoin the source domain during a rollback event, the following error is encountered:
"An account with the same name exists in Active Directory. Re-using the account was blocked by security policy."
Microsoft released KB5020276 in October 2022, which modifies the domain join process and performs additional security checks before attempting to reuse existing computer accounts.
Per the Microsoft KB article, computer account reuse is only permitted in the following scenarios:
Follow Microsoft’s guidance in the Take Action section of the KB to configure the new group policy that grants permissions for specific accounts to re-use pre-existing computer accounts during domain join.