I was trying to identify computer accounts that had not logged in within the last 6 months. To do that, I used theĀ get-adcomputer PowerShell cmd-let.

I was trying to find a way to identify what the unused user accounts were in my AD environment. I started playing with PowerShell’s get-aduserĀ cmd-let. The working script that I came up with is below.