Auto Delete from AD
What you can do is to have some sort of script that scan AD regularly for
such computer accounts by leveraging the pwdLastSet attribute. It basically
identifies stale computer accounts based on the number of days since the
computer account has logged on to the domain. Or you can use the lastlogon
attribute. Because the LastLogon attribute is not replicated, every Domain
Controller in the domain must be queried to find the latest LastLogon date
for each computer.
I would recommend simply disabling the identified accounts for a period of
time prior to deletion. This would give you a pre-determined window of time
for improperly identified machines to be re-enabled.
Zunquan Wang [MSFT]
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
|