Probably using the DHCP addresses would be pretty current so maybe that would be the route. I could export to Excel and sort by alphabet and that should do it.
thanks
Gary
Main Topics
Browse All TopicsWe do a lot of imaging and my techs many times do not name the computers the exact same name. So I have about 3300 computers listed in Active Directory but I know I only have about 1600. AD has been active for about 2.5 years so I have alot of excess baggage. I can see the active computers in Hyena and could delete from there but I take a chance that I will delete legitimate ones adn then we would have to go out and join the domain again. I know that I could go to DHCP and see who the active leases are but that would entail doing a ton by hand and I would think there has to an easier way. thanks
Gary
BTW they should give points for really good questions and I feel this is a great one.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
I think I've got an easy resolution for this:
1. Launch ADU&C
2. Click on View, Filter Options, Create Custom, Customize, Advanced Tab.
You're going to enter an LDAP filter thats something like this:
(whenChanged<=200311140040
The above example can be broken out to read 2003 11 14 00 40 54, or 11/14/2003 at 00:40:54. Use the format
above to pick your date and be sure you append the .0Z as well.
3. Browse to the computers container
You should now only see computers that were last modified before the date you put in. You can make the choice whether to delete them or not, but this will give you a list of computers that haven't been changed since the date you pick.
marc_nivens.. that's a great simple straight forward solution. I have to admit I have not played around with Active Directory's filtering capabilities, but will be experimenting with them.
I will caution, I do not believe the whenchanged attribute is replicated between DCs. There fore if you are going to implement Marc_Nivens advice, I would recommend checking all your DCs. Still a great tip. MSGeek.
You know, I completely overlooked that... you made me start thinking so I did some more research on the topic. I found the following from http://www.activxperts.com
<paste>
Network Administrators have always wanted an easy way to get a list of network workstations along with operating system and service pack information. You can now do this by using new attributes on Windows 2000 computer accounts to identify the computer's current status. The computer object is now automatically updated with information (from the netlogon service during secure channel setup) about the client's operating system, operating system version, and service pack level. You can identify unused or possibly inactive computer accounts; accounts that have never been used do not have the operating system and version attributes set. If the whenChanged attribute is more than a month old, the computer probably is not active on a network making periodic password changes. The whenChanged attribute is a non-replicated attribute which means it is calculated on each DC. The lastLogon attribute is not replicated between DCs; to determine the last logon time you have to examine it on all DCs.
</paste>
So it appears that you were absolutely right, but it seems to be ok to use this method. I'll say caveat emptor as I've never actually used this method to clean up accounts. MSGeek, thanks for keeping me honest :-)
So I guess I have asked a very important question. It's important because most utilities such are virus servers and patch servers look at the domain to do their thing. Extra names means wasted efforts. I am in the process of changing our dhcp scope to about 1000 addresses instead of 30,000 that my prdecessor had in. Makes quicker work to find stuff. Well if anyone comes up with a good tool, even one that i have to buy that would be great.
Gary
I ended up using the tool Hyena which listed all the computers in the domain by the last password change which I understand is a function of the operating system not the user changing the password. The system changes every 30 days. I just lined up the computers that were 2 months old, deselected those that I knew were laptops that hadn't logged in for a while and poof I reduced 3300 names in AD to about 1900.
For me case closed.
Gary
Business Accounts
Answer for Membership
by: MSGeekPosted on 2003-11-15 at 12:11:35ID: 9755253
Gary, I think no matter how you look at this problem you'll come to find if the work is not done from the "get go" it is much more difficult to do it latter on. Additionally in an IT industry such as we have today your technicians should take more ownership in their work and follow procedures to avoid creating such a mess.
om/default .aspx?scid =kb;en- us; 296116&Pro duct=win20 00
One thing you could do is setup you inattend file to import new images into a different OU. This would prevent the current pool of unknowns from groing any larger and becoming more unmanagible.
The other thing you could do is enable scavenging in DNS: http://support.microsoft.c
Regradless of what you do I believe there is going to be some grunt work involved.
I suppose you could grant all users the ability to add a computer account and then delete all computer accounts, however I will deny that I ever recommended this solution. :-)
Good luck, MSGeek.