Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# Requires ActiveRoles CmdLets from Quest Software (They're free and awesome) - http://www.quest.com/powershell/activeroles-server
$old = (Get-Date).AddDays(-60) # Modify the -60 to match your threshold
Get-QADComputer -IncludedProperties pwdLastSet -SizeLimit 0 | where { $_.pwdLastSet -le $old }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment