PowerShell – Listing aged out computer accounts in Active Directory

PowerShellDo you remember having to use OldCmp.exe  from JoeWare (great tools by the way) to capture a a list of computer accounts which have not been attached to your Active Directory for a period of time. Luckily with PowerShell and Quest ActiveRoles you can do this with a simple two line script.

Here’s the code: http://gist.github.com/492494

Find Old Computers In Active Directory
Find Old Computers In Active Directory

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.