Hi
My colleague has tested further and now done a second stand alone domain setup as per the below.
- Setup fresh server 2025 Domain controller (forest/domain functional level at 2025)
- Install 2 workstations on windows 11 23h2
- Set machine account password max age to 1 day
- no GPO's added other than to set max machine account password age to 1 day.
Both workstations have now trust relationshiped themselves into oblivion, so upgrade or fresh the issue is still there on 2025.
I have also separately on my 2 test machines within our production environment (where the issue was first found) done the below.
Both machines have machine account password max age set to 1 day.
Test Machine 1
- Upgrade from 23H2 to 24H2 - This was done on the 09/01/2025
- Rebooted daily to ensure the machine account password change process runs (believe it should anyways but just in case).
- Local Machine account password on the workstation has stayed on 09/01/2025 on the workstation and stayed 09/01/2025 in AD
- Trust relationship has yet to break 4 days on from this change but the local and AD passwords are not updating.
Test Machine 2
- Kept device on 23H2
- Rebooted daily to ensure the machine account password change process runs (believe it should anyways but just in case).
- Local machine account password on workstation updated yesterday to be 12/01/2025 on the workstations but stayed at 09/01/2025 in AD
- Trust relationship broke as we are seeing within our environment more generally.
Code used to find local machine account password date on device to compare to AD is below (may need to be run as system).
Get-date –date ([DateTime]::FromFileTime([System.BitConverter]::ToInt64((Get-ItemProperty -path "HKLM:\SECURITY\Policy\Secrets`$MACHINE.ACC\CupdTime").'(default)',0))) -Format 'dd-MM-yyyy'
My best guess at the moment is 23H2/Server 2025 is broken and so makes a change to the local machine account password when its not being done in AD where 24H2 is aware that the machine account password hasn't updated in AD and so keeps the local password.
What's more concerning is that on 24H2 while the machine isn't trust relationshipping itself into oblivion (yet) it also isn't correctly updating the passwords, they are just sitting at the old values. But i need a few more days to ensure the above continues to behave as described.
I have also asked my colleague to move a machine in each of his test instances up to 24H2 and leave one at 23H2 to further test the above from a totally empty environment.
Hopefully this is helpful for the other people with the same issue i can see are starting to show interest in this thread.