What you're seeing
Your domain controller logs throw ERROR_DS_CROSS_DOMAIN_CLEANUP_REQD with code 0x0000212B. The event says something like "the directory service cannot perform cleanup of cross-domain objects." Had a client last month whose whole domain replication stopped because of this.
Basically, your AD tried to delete or update an object that references another domain, and that domain isn't talking back. Could be a dead domain controller, a broken trust, or leftover metadata from an old decommission.
Let's fix it in three steps — stop when the error goes away.
Fix 1: Quick restart (30 seconds)
Sometimes the error is just a glitch. The domain controller lost sync with a partner temporarily. Restart the NetLogon service or reboot the whole server.
- Open Command Prompt as admin.
- Type
net stop netlogon && net start netlogonand hit Enter. - Check event logs again. If the error is gone, you're done.
If it sticks, move on. Had a small office where this worked once — a network hiccup cleared after restart.
Fix 2: Check domain trust (5 minutes)
The error often means one domain can't talk to another. Verify the trust is healthy.
- Open Active Directory Domains and Trusts from Server Manager or Admin Tools.
- Right-click your domain, select Properties, then the Trusts tab.
- For each trust listed, click it and hit Verify. Enter credentials for the other domain when asked.
- If verification fails, note the trust that broke. You'll need to remove and recreate it.
If trust is dead:
- Right-click the broken trust in the list, choose Remove.
- On the other domain controller, do the same from its end.
- Recreate the trust by right-clicking your domain, New Trust, and run the wizard.
- Re-verify after creation.
After fixing the trust, reboot the domain controller. Check event logs. Still there? Go to the advanced fix.
Fix 3: Remove stale metadata (15+ minutes)
If trust is fine, you've got leftover metadata from a domain controller that was removed without proper cleanup. This is common when someone just deleted the server without running dcpromo or using Server Manager to remove AD DS.
Use ntdsutil. But careful — you can wreck your AD if you mess this up.
- Open Command Prompt as admin.
- Type
ntdsutiland press Enter. - Then
metadata cleanupand Enter. - Then
connectionsand Enter. - Type
connect to server [your own DC name]— substitute your actual DC name, likeconnect to server DC01.example.com. - Type
quitto go back. - Type
select operation targetand Enter. - Type
list domains. You'll see domain numbers. - Find the domain that the error references. Type
select domain [number]. - Type
list sites, find the site if needed, select it. - Type
list servers in site. Look for a server that shows as "removed" or has a question mark. Select it withselect server [number]. - Type
quittwice to get back to metadata cleanup prompt. - Finally, type
remove selected serverand confirm.
After that, exit ntdsutil (quit then quit again). Reboot the DC. Check event logs — the 0x0000212B should be gone.
If nothing works
Sometimes the error hides deeper — corrupted AD database or replication issues. Run repadmin /replsum to see any lingering replication failures. If you see failures, fix replication first. Last resort: restore from backup of a good DC.
Got a tricky case? Drop me a line. I've seen this enough times to know it's rarely a hardware problem.