Users passwords expire even though GPO set to never.

Jon Mercer 1,026 Reputation points
2022-09-27T17:47:56.757+00:00

There has been a fair amount of discussion about this, but they were for older servers (we have 2019), and the steps to check some things like ANSI Edit have changed.

I have a GPO set up to have passwords never expire on the DC (Server 2019).

We are also using Azure AD Connect, which also has the box checked for password to never expire, though that shouldn't matter since the AD GP should override it.

I haven't tracked exactly how long it is, but our passwords still expire.

It was suggested to run Get-ADFineGrainedPasswordPolicy -Filter {Name -like "*"} | FT Name, Precedence, MaxPasswordAge, MinPasswordLength -A to see what it shows in case there is a FGPP set up, but it just says loading and then goes to a prompt, so guessing this means there isn't one.

I tried looking through ANSI Edit on the DC, but couldn't find anything about passwords, so I am not sure why our systems are still being asked to reset their passwords.

Not that it matters any, but all systems are running Windows 10 Business.

This is the GP on my desktop.

245139-image.png

If I run Get-ADUser -filter {Enabled -eq $True -and PasswordNeverExpires -eq $False} –Properties "DisplayName", "msDS-UserPasswordExpiryTimeComputed" |
Select-Object -Property "Displayname",@{Name="ExpiryDate";Expression={[datetime]::FromFileTime($_."msDS-UserPasswordExpiryTimeComputed")}} it shows that everyone's passwords expire after 90 days.

Windows for business | Windows Client for IT Pros | Devices and deployment | Configure application groups
Windows for business | Windows Client for IT Pros | User experience | Other
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. JimmySalian-2011 42,611 Reputation points
    2022-09-27T18:05:34.69+00:00

    HI,

    Please provide details of the GPresult and RSOP export from the device.

    gpresult /S system /USER targetusername /SCOPE COMPUTER /V’

    Specific User with password expiry issue

    gpresult /R /USER targetusername /P password’

    Domain policy and copy of user settings exported please.


  2. Philippe Levesque 5,836 Reputation points Volunteer Moderator
    2022-09-27T18:27:52.317+00:00

    Hi, this setting is set per machine via the GPO.

    Make sure the GPO apply to the computers. To make sure just check inside your 2019 DC in the GPO's console do a report and target a remote computer to see if the setting is there.

    It can happen if you changed the GPO value some time ago, but your user are on the field with older set of applying's GPO in example.

    I would add if a test was done to expire the user password and the GPO was reverted back, it would not stop a user to be forced to reset his password if he got that GPO settings on his computer (or on a terminal server in example too)


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.