Powershell get password statistics

Get password stats and export to csv

Import-Module activedirectory
Get-ADUser -filter * -properties PasswordExpired, PasswordLastSet, PasswordNeverExpires | ft Name, PasswordExpired, PasswordLastSet, PasswordNeverExpires | Export-csv -path c:\tmp\users.csv

You may also like...