Simple powershell script to pull list of AD users including dates of password expirations:

Get-ADUser -Filter * -Properties DisplayName, msDS-UserPasswordExpiryTimeComputed | Select-Object DisplayName, @{Name="ExpiryDate";Expression={[datetime]::FromFileTime($_.msDS-UserPasswordExpiryTimeComputed)}} | Export-Csv -Path "C:\path\to\output.csv" -NoTypeInformation

Replace “C:\path\to\output.csv” with the path where you want to save the CSV file.

Useful for automation purposes for password expiration notifications.