User Password invalid in?
Import-Module ActiveDirectory
Get-ADUser -filter {Enabled -eq $True -and PasswordNeverExpires -eq $False} `
–Properties “SamAccountName”,”msDS-UserPasswordExpiryTimeComputed” |
Select-Object -Property “SamAccountName”, @{Name=”Password Expiry Date”; `
Expression={[datetime]::FromFileTime($_.”msDS-UserPasswordExpiryTimeComputed”)}} | FT