Find AD user accounts with account expiration date set, sort and display user’s name and expiration date.
Get-ADUser -Filter "AccountExpirationDate -ne '*'" -Properties AccountExpirationdate | Sort-Object -Property Name | Format-Table Name AccountExpirationDate
To list all the attribute values of a user.
Get-ADUser -Identity user -Properties *
You can use Search-ADAccount cmdlet to search the AD objects.
For example to filter the accounts that are locked out.
Search-ADAccount -LockedOut | FT Name, UserPrincipleName