>NULL: February 2023

Monday 6 February 2023

Using PowerShell to find when domain users last set their password

 A simple one, enter the following into PowerShell running as a domain admin to export a list of domain users with the date they last set a password and if their password is set to expire.


Get-ADUser -filter * -properties passwordlastset, passwordneverexpires | sort-object name | select-object Name, passwordlastset, passwordneverexpires | Export-csv -path c:\PassLastSet.csv


You can of course also use CMD. Which is much simpler and easy to remember.

Net User Username