r/activedirectory
How do you tell a stale computer object from a box thats just off?
- upvotes
- 12
- comments
- 17
Post
Highlighted: the lines this signal was extracted from
Ran the usual quarterly cleanup last friday. Search-ADAccount for computers inactive 90 days, 182 objects, disabled them all and moved them to a quarantine OU. I have done it the same way for years. Tuesday the DR test started and six recovery servers could not log on to the domain. Trust relationship failed on every one. They get powered on twice a year for exactly this test, so their last Logon Time stamp is always months old and they were sitting in my 182. Next day a guy back from four months of parental leave, same error on his laptop. Reenabled those seven and nothing else has broken yet, but i dont trust the other 175. Last Logon Time stamp tells me when the object last talked to a DC. It does not tell me if the box still exists. The axonius view security set up helps with half of it: it splits the 182 into ones the EDR or intune saw recently and ones only AD still knows about. The DR servers were in the second pile anyway. They are off, nothing reports them, so they look exactly like dead objects. Next quarter the script reads an exclusion group before it touches anything, and the DR team owns what goes in it.