AntiMalware Status

Get report on recent password changes in AD

Here is a quick scrip to pull report on recent password changes for users in Active Directory:

Import-Module ActiveDirectory
$DateCutOff = (Get-Date).AddDays(-5)
Get-ADUser -Filter * -Property passwordlastset | Where-Object { $_.passwordlastset -gt $datecutoff } | Format-Table Name, passwordlastset -Autosize

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.