Quick and easy post – get a list of when users last set their password, we use this over the holiday periods so we can preempt passwords that are going to expire around christmas etc.

Get-ADUser -filter {Enabled -eq $True -and PasswordNeverExpires -eq $False } –Properties “DisplayName”, “msDS-UserPasswordExpiryTimeComputed”, “Description” | Select-Object -Property “Displayname”,@{Name=”ExpiryDate”;Expression={[datetime]::FromFileTime($_.”msDS-UserPasswordExpiryTimeComputed”)}}, Description | export-csv C:\source\OPPassword.csv

Leave a Reply

Your e-mail address will not be published. Required fields are marked *