how to get the password expiration date for Active Directory User Accounts.
Open PowerShell and run the command
$ExportPath = 'c:\temp\passwordexpiration.csv’ Get-ADUser -filter {Enabled -eq $True -and PasswordNeverExpires -eq $False} –Properties "DisplayName", "msDS-UserPasswordExpiryTimeComputed" | Select-Object -Property "Displayname",@{Name="ExpiryDate";Expression={[datetime]::FromFileTime($_."msDS-UserPasswordExpiryTim