Get-ADUser -filter * -properties passwordlastset, passwordneverexpires | sort-object name | select-object Name, userprincipalname, passwordlastset | Export-csv -path zz.csv
Get-ADUser -filter * -properties passwordlastset, passwordneverexpires | sort-object name | select-object Name,userprincipalname,DistinguishedName,enabled,passwordlastset,PasswordNeverExpires,Description | Export-csv -path zz.csv
get-ADGroupMember -Identity "Domain Admins" -Recursive | Get-ADUser -Properties * | select name,samaccountname,sid,enabled,adminCount,DistinguishedName,PasswordNeverExpires,PasswordNotRequired,LastLogonDate,PasswordLastSet,created,Description | export-csv -path