Finding Old Computer Accounts in Active Directory with Powershell
Date: 20 June 2011
Categories: active-directory, powershell
Following up on a previous post discussing finding old user accounts in Active Directory, here’s how you find old computer accounts. This works on basically the same premise as the user script. In short, we’re going to check the last time the computer logged into Active Directory. That happens on every reboot and from time to time while the machine is up. The same warning applies to computers as it does for user accounts.