daknetworks.com

You are here: Blog Find AD Accounts Older Than 60 Days

Find AD Accounts Older Than 60 Days

Get-ADUser -Filter * -Property LastLogonDate |?{$_.LastLogonDate -le (Get-Date).AddDays(-60) -and ($_.enabled -eq $true)} |sort lastlogondate -desc |ft name, lastlogondate

Contact Dak Networks

We are not taking on new clients at this time.