| Posted by: drdread - 28 March 2025 11:45:56 |
|---|
| I had to restore a DC and now I cannot access it as the message showed says that the target name account is incorrect - did I do the restore wrong? |
| Posted by: sirclesadmin - 28 March 2025 11:47:22 |
|---|
|
The message “The target account name is incorrect” after restoring a Domain Controller (DC) typically means there’s a Kerberos authentication issue, often caused by a mismatch in machine account passwords or secure channel trust between domain members and the DC. Let’s methodically go through why this happens and what you can do: 🔧 Common Reasons After a DC Restore1. USN Rollback or Lingering Metadata
2. Computer Account Password Mismatch
3. SYSVOL or NTDS Database Corruption/Mismatch
✅ How to Fix ItLet’s assume this is not your only DC (multi-DC environment). If it is your only DC, the situation is more recoverable, but you need to treat it differently. 🧪 Step-by-Step Diagnosis:
🔁 Fix Options Based on Cause✅ OPTION 1: Rejoin the Domain (If not the only DC)If this is a secondary DC:
✅ OPTION 2: Reset Computer Account TrustIf you suspect only a machine account password mismatch:
Or use:
This attempts to reset the trust from the restored DC to another working one. ✅ OPTION 3: Authoritative vs Non-Authoritative Restore (for SYSVOL)If the restore caused SYSVOL replication to fail:
💣 If This Is the Only DCIf this is a single-DC domain and you restored it from a backup:
In extreme cases, you may need to:
🔮 Going ForwardIf this is part of a larger network and you’re restoring DCs from snapshots or images, always:
Would you like to walk through the recovery live step-by-step with specific commands based on your setup (e.g., single or multi DC, backup method, OS version)? That way, we can take the cleanest path forward. |
| Posted by: drdread - 28 March 2025 11:49:04 |
|---|
| which server do I enter 'Reset-ComputerMachinePassword -Server "OtherDCName" -Credential (Get-Credential)' into and which is the other DC name? |
| Posted by: sirclesadmin - 28 March 2025 11:50:43 |
|---|
|
Great question — this step must be run on the restored Domain Controller (the one you're having trouble logging into) in order to reset its machine account password with another working DC in the domain. 🧭 Breakdown of the Command:
✅ Where to Run It:Run it in PowerShell on the restored DC that’s showing the error. 🧱 Example:Assume:
Then you'd run this on
When prompted, enter the credentials of a domain admin account, like:
⚠️ If You Can’t Log Into the Restored DCIf you’re totally locked out:
Let me know:
That’ll help chart the next safest step. |
| Posted by: drdread - 28 March 2025 11:52:58 |
|---|
| OK that seems to have solved it, thanks. |