Question

Getting rid of Inactive computers from active directory

Asked by: macpiano

We 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.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2003-11-14 at 21:02:37ID20798814
Tags

active

,

directory

,

inactive

,

computers

Topic

Windows 2000 Operating System

Participating Experts
4
Points
0
Comments
14

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

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.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

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.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

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.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Excess file fragments
    Dual boot XP/2000. NTFS on both. 533 Celeron. Have always Defragged at least once a week. Just recently the system (Win 2000 Pro) has become extremely slow. Ran defrag and now there are a tremendous amount of excess file fragments and fragmented files. 1) What is the pr...
  2. LEA IN NASM
    HI.. LEA does't work in my NASM, but it is valid operand.. Error message is "invalid combination of opcode and operand" SEGMENT code PUBLIC LEA DX, MSG1 SEGMENT data PUBLIC MSG1 DB "TEST $"
  3. Points For Gary
    This is for points for Gary, just post here Gary and I will accept. wD
  4. Excessive Inbound/outbound failure mail in Administrator M…
    Good morning! I have a situation that I'm a little concerned about. I have excessive inbound (mostly) and occassional outbound failure messages appearing in my administrator mailbox. Close to 1,500 a day. Most of them are inbound failures,--the outbound seem legitimate (a...
  5. x86 - LEA
    This has been puzzling me for a while - of what use is the LEA instruction? To me it just looks like a MOV instruction which can take a relatively-complex second argument - nothing that can't be done with a MOV, a MUL and an ADD. I know (I think) it was created for loading t...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

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.

Join the Community

Answers

 

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.  

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.com/default.aspx?scid=kb;en-us;296116&Product=win2000

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.

 

by: macpianoPosted on 2003-11-15 at 19:03:04ID: 9757441

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

 

by: marc_nivensPosted on 2003-11-16 at 00:43:12ID: 9757931

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<=20031114004054.0Z)

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.

 

by: MSGeekPosted on 2003-11-16 at 08:09:46ID: 9758868

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.

 

by: marc_nivensPosted on 2003-11-16 at 08:24:29ID: 9758923

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/activmonitor/windowsmanagement/adsi/ under the Extracting Computer Information section:

<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 :-)

 

by: MSGeekPosted on 2003-11-16 at 08:34:22ID: 9758964

marc_nivens.. we're all after the same answer, the one that works.  Jut call me anal retentive, not really out to keep anyone enything, just solving problems is my gig.

 

by: macpianoPosted on 2003-11-16 at 16:51:36ID: 9760581

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

 

by: macpianoPosted on 2004-01-05 at 04:49:56ID: 10042425

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

 

by: MSGeekPosted on 2004-01-05 at 10:10:39ID: 10045581

Gary.. thanks for the update.

Moderator.. I am ok with a refund as long as this is PAQ'd.

 

by: mk30363Posted on 2004-03-22 at 05:52:04ID: 10648716

Hi everybody, trying to clean up my AD, i've got a few questions:
What about if the Full Name is missing (Computer$) ?
What about Users connecting remotly? (Through 56K Modem, does the computer account change ?)

Thanks

Mike

 

by: MSGeekPosted on 2004-03-22 at 15:45:06ID: 10653882

mk30363.. Mike.. I see you are fairly new to EE.  Welcome. If you have a question you need to post it on your own.  It's not right to piggy backsomeone elses question.   PLease post your own question.  Thanks,  MSGeek

 

by: moduloPosted on 2004-05-29 at 13:11:56ID: 11188464

PAQed, with points refunded (500)

modulo
Community Support Moderator

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...