TIA.
I'm trying to:
Find all 'user' accounts in AD which are enabled, then find those accounts which have not logged in for 60 days, then sort those accounts by lastlogondate, then provide a list of user names and lastlogondate, and (last in my thoughts but very important) the count of the results.
I've only gotten as far as: Get-ADUser -Filter {(ObjectClass -eq "user") -and (enabled -eq $true)}
I've tried to pipe it to Search-ADAccount -AccountInactive -Timespan 60.00:00:00 and have gotten a whole lotta red.
Any advice, links to read, etc... would be welcome.
Thanks again,
Davis