This script, InactiveComputers.ps1, creates a list of inactive computers using Get-ADComputer. It uses Output-GridView (PowerShell 3) to navigate AD to select an OU to search, and will prompt you for the number of days since the computer last changed its password, recorded in passwordlastset.