Jump to content
EduGeek EdSec 2026 is Go! 27th Oct in Derby! Join us for a day of EdTech security focused talks, networking, and an evening social ×

Not logged in pass 90 days split into groups


Recommended Posts

Posted

I have run the following to show me who has not logged in for the last 90 days

 

Search-ADAccount -AccountInactive -TimeSpan 90.00:00:00 | where {$_.ObjectClass -eq 'user'} | FT Name,ObjectClass –A

 

How can I add a group filter to this so I can show what staff, pupils have not logged in.

 

Thanks Cooper

Posted

Worked it out, see below

 

Search-ADAccount -AccountInactive -SearchBase "OU=ENTER YOUR OU,DC=ENTER YOUR SCHOOL DC" -TimeSpan 90.00:00:00 | where {$_.ObjectClass -eq 'user'} | FT Name,ObjectClass –A | Out-File c:\InactiveUsers.txt

Posted

Have you more than one DC, have you run on both and compared results??

 

Jus wondering because I have seen different results because users authenticate against one DC or another.

Posted

Have you more than one DC, have you run on both and compared results??

 

Jus wondering because I have seen different results because users authenticate against one DC or another, would be useful to know.

Posted

I have 2 DC and had the same results on both.

 

Thanks for letting me know as I am going to test this at another school on Friday and will make sure I run on both.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...