
Hello, colleagues!
Has anyone by any chance resolved this strange anomaly?
I have two AD sites, one of which has two DC WS 2022 GUIs in the Yandex Cloud.
The other two DC WS 2022 Cores are in the site at the DC.
On August 31, the Maximum password age setting in the Default Domain Policy was changed from 0 to 180 days on the DC with the PDC role.
But a little later, while running one of the scripts, discrepancies in the account parameters were discovered:
DC attribute msDS-UserPasswordExpiryTimeComputed
YA-DC01 9223372036854775807
YA-DC02 9223372036854775807
9223372036854775807 -> 0x7FFFFFFFFFFFFFFFF, which is the special value "password never expires"
SL-dc03 134364635281752932
SL-dc04 134364635281752932
However, the DC in the DC correctly calculates 134364635281752932 from the same pwdLastSet.
The Default Domain Password Policy object in AD is correct for the entire domain: Maximum password age = 180.
BUT on the DC in the cloud!
YA-DC01/YA-DC02
MaxPasswordAgeRaw: -1
MaxPasswordAgeDays: TIMEQ_FOREVER
This means that the local SAM of these two DCs calculates:
maximum password age = forever.
And net accounts on YA also show:
Maximum password age (days): Unlimited
Local Security Policy on YA-DC01/YA-DC02 (i.e., the local policy settings on these DCs in YA) - Maximum password age: 0 days
This was verified:
pwdLastSet is the same; ✅
userAccountControl = 512;✅
msDS-ResultantPSO missing;✅
FGPP not applied;✅
AD and SYSVOL replication verified;✅
Default Domain Policy applied;✅
SceCli reports successful policy application.✅
We compared versions and KBs, but there's no confirmed Microsoft issue/KB for this specific case yet.✅
I see it this way: the problem isn't with AD or SYSVOL replication. On two YA-DCs, the local SAM/NetAPI state doesn't match the domain policy. This is why the same user receives different password expiration calculations depending on the DC.
In short, the local policy on both DCs (in the cloud) shows the following after applying the required password policy (screenshot attached). There are no other policies affecting the local policy—I've also verified this.
I can't recall a problem like this in many years. I laid it out as best I could. Can anyone tell me, or is it possible the box just opens?