PowerShell Get Domain Account Password Age

This one liner will get the password age in days of an account on the current domain:

[Math]::Round($(get-qaduser $user).PasswordAge.TotalDays)

In this case you’ll need to set the $user variable prior to running this command.