Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
# Requires ActiveRoles CmdLets from Quest Software (They're free and awesome) -
$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