Forum Discussion
edoukou_225
Nov 29, 2026Copper Contributor
Restoring Kerberos AES keys on ADMT-migrated accounts without a password reset
When migrated accounts "forget" Kerberos, and how to give them AES back without a single password reset
Picture this: you finish an AD migration, you harden the new domain (AES only, RC4 switched off, like a good citizen), and a bunch of users suddenly can't log in. Kerberos is giving them the cold shoulder. 🥶
Here's the deal. Tools like ADMT carry over the old NT hash (the RC4 world) but not the modern AES Kerberos keys. In an AES only domain, an account with no AES key is basically knocking with the wrong handshake.
The "obvious" fix is to reset everyone's password. Picture the helpdesk's face. Picture the service accounts quietly falling over. There's a better way.
Plot twist: those AES keys were never lost. Since the 2008 functional level, every password change quietly generates RC4 and AES keys, side by side, in the directory. ADMT just didn't pack them for the trip. So you don't recreate them, you re-copy them from the old database. No password change, no user action.
The tricky bit: the salt. AES keys are "salted" with the realm name. Rename the domain and the salt changes, so does the copied key still work? It does, as long as the target KDC advertises the original salt you copied. Nobody really documented that, so I built a lab and tested it. Verdict ✅: the unchanged password still derives the copied key, even across a rename. Transparent for the user.
The honest part. This edits ntds.dit offline. It is not supported by Microsoft, it's high risk, the files involved are your domain's crown jewels (Tier-0), and you rehearse it in a lab before you even think about production. A scalpel, not a Swiss army knife.
I wrote up the whole thing (the crypto, the salt and rename proof, rolling it out across DCs with safety rails and rollback, how it scales to 500k accounts, and a turnkey lab so you can reproduce every screenshot yourself) and open sourced the PowerShell tooling (MIT):
👉 https://github.com/edoukou-225/aes-key-reinjection/tree/main
Bonus: the tool sorts accounts into the recoverable ones (AES exists in the source, so reinject) and the irreducible ones (no AES anywhere, only a password event fixes those), and measures both before you touch a thing.
Transparency note: this post and the write-up were drafted with the help of an AI assistant (Claude). The lab work, tests and code validation are mine, and I reviewed the content before publishing.
No RepliesBe the first to reply