Vérifier l'expiration des mots de passe sur un domaine

Get-ADUser -filter {Enabled -eq $True -and PasswordNeverExpires -eq $False} -Properties "DisplayName","PasswordNeverExpires", "msDS-UserPasswordExpiryTimeComputed", "PwdLastSet" | Select-Object -Property "Displayname","PasswordNeverExpires", @{Name="LastChangeDate";Expression={[datetime]::FromFileTime($_."PwdLastSet")}}, @{Name="ExpiryDate";Expression={[datetime]::FromFileTime($_."msDS-UserPasswordExpiryTimeComputed")}}