Tagged: Powershell

Powershell get password statistics

Get password stats and export to csv Import-Module activedirectoryGet-ADUser -filter * -properties PasswordExpired, PasswordLastSet, PasswordNeverExpires | ft Name, PasswordExpired, PasswordLastSet, PasswordNeverExpires | Export-csv -path c:\tmp\users.csv