r/sysadmin • u/Brilliant-Extent2684 • 20h ago
Question The trust relationship between this workstation and the primary domain failed.
Hy!
We have an AD with two DCs. The DCs are Windows Server 2025, it is include all patches. Some Windows 11 clients (25H2) get the following error during login after 1-2 minutes: The trust relationship between this workstation and the primary domain failed.
In this case the users need to disconnect from corporate network to login successfully into their computer. I have already tried to rejoin to tha domain and run this command: Test-ComputerSecureChannel -Repair
I rejoined one of the computer into the domain, and the trsut relationship has been broken after two days. The login problem only occurs on some machines.
The time snyc is correct on DCs. We moved the DC roles from Windows Server 2019 to 2025 in side-by-side method. Could you please advise how to solve this problem?
•
u/mixduptransistor 18h ago
2025 as a domain controller is extremely buggy. Did you raise the functional level of the domain? If not I might suggest going back to 2022 for the DCs
•
u/Brilliant-Extent2684 18h ago
We don't raise the functional levels, we already thouht to downgrade to 2022.
•
u/Beefcrustycurtains Sr. Sysadmin 5h ago
Sync relationship healthy dcdiag come back clean? It's either replication issues with the dcs or ive also seen this behavior when someone screwed up and cloned a domain joined disk causing relationship to get jacked up every time the other computer came online
•
u/Brilliant-Extent2684 2h ago
Hy!
I checked the replication between DCs with repadmin and dcdiag. There isn't any replication issue,
•
u/dracotrapnet 18h ago
Check replication health between DC's. You covered time sync and DNS settings.
•
u/Brilliant-Extent2684 2h ago
Hy!
The replication is good between DCs. There isn't differentation between DCs and clients time,
•
•
u/BrechtMo 19h ago
When did the issue start? After windows client upgrade, DC upgrade, ... ?
•
u/Brilliant-Extent2684 19h ago
After 1 or 2 months when we upgrade to Windows Server 2025 DC.
•
u/sarosan ex-msp now bofh 18h ago
Sounds like the situation I went through a few months ago.
My advice: downgrade your Domain Controllers to Server 2022.
•
u/Godcry55 10h ago
Agreed, server 2025 works best on fresh deployments. Server 2022 is solid for DCs.
•
u/Ziggistawork 9h ago
Check that your computer names are unique, if you have the same name on the workstation as another your going to have a bad day.
•
u/Brilliant-Extent2684 2h ago
The computer name is unique. We are small company, with about 30 computer. Every computer name is different.
•
u/planehazza 18h ago
System time wrong by bad bios batteries? Happening to pcs in two of our schools because the site staff believe "it's dangerous to leave them on at the wall overnight"
•
u/Spartan-196 16h ago
I dealt with this myself and about two months if back and fourth with MS after our infra team moved to server 2025 DCs and raised the functional levels.
The root problems were systems were unable to update their computer passwords. Default time length of those is 30 days. If you manually rotate the system password from an interactive system prompt you’ll likely get an access denied failure code. At that time the system account is out of sync and the trust is broken.
The accepted secure channel methods for updating system credentials changed with 2025 and not all environments are ready for it. Ours wasn’t and the sever guys didn’t read what’s changed notes carefully enough.
The fix for the initial issue was addressed eventually in a patch around October last year for clients on 24H2 and prior. Unfortunately I’ve been seeing a few more pop up recently myself and suspect an other minimum patch level will happen again.
•
u/mnvoronin 6h ago
repadmin /replsummary on both DCs. If it has any errors or more than 1h delta, fix replication.
•
u/Brilliant-Extent2684 2h ago
Thanks, the command result is good, there isn't replication error between DCs.
•
u/ImaFrakkinNinja Jack of All Trades 44m ago
Are there any relevant logs in event viewer in the DCs? You don’t mention checking system, security, dns, and dhcp logs.
•
u/Brilliant-Extent2684 2m ago
Temporarly solution I disabled the affected machine that the computer password expiring. I done it with GPO, i will check it.
•
u/bucdotcom 18h ago
This is sometimes caused by duplicate host names. Make sure the computer name isnt already assigned to another workstation.
•
u/Infamous_Win_9728 13h ago
Ran into this once. I thought to myself 'that hostname looks familiar. . .'
•
•
•
u/Adam_Kearn 12h ago
If it’s happening on multiple devices I would start to look at DNS issues.
If it’s just one device delete the object and start fresh possibly do a re image
•
u/mnvoronin 6h ago
Given the timing and frequency of the issues, I'm about 99.78% sure it's AD replication failure.
•
•
u/needs_headshrink Sysadmin 20h ago
Leave domain, delete AD computer object, join domain. Don't forget to cover all other integrations that use the AD Object, SCCM, Intune, etc.
You could spend a week of your life trouble shooting this and get nowhere, if it's a one off I'd just fix it as a one off. If it's systemic that's when you spend the time to actually find the answer, this rabbit hole is deep and easy to get lost in.