computer in active directory are not Auto deleting

Posted on 2009-04-24
Last Modified: 2013-12-05
my computers in active directory under Computers group are not auto delteing. is there a way i can set active directory to delete computers that have not been connected to our domain for more than a certain period.
we get computers that crash or are replaced but it still has it in active directory. i want to set a date such that if we have had no response from a computer for 30 days, i want it to delete the computer.

anyone with any ideas?
thnks in advance.
Question by:cchibonga
    LVL 57

    Expert Comment

    by:Mike Kline
    No auto delete function natively
    My favorite tool for this is old computer by MVP Joe Richards
    So first you can run a report to see your old computers (you can specify number of days)
    Then you can disable and then delete them.   We disable after 90 days and delete after 180 days.
    Another nice thing are the .htm reports...your boss will like them
    LVL 5

    Expert Comment

    Here is some info fro you:

    Since we have one 2003 server in our environment (Our SMS 2003 Server), we loaded the 2003 admin pack to that machine.

    We were then able to query our Windows 2000 active directory (SP3 required) using the dsquery command.

    To display stale computer accounts:
    dsquery computer DC=YOURDOMAINNAME,dc=com -stalepwd 45

    If you want to delete the accounts, you pipe the results to DSRM:
    dsquery computer DC=YOURDOMAINNAME,dc=com -stalepwd 45 | dsrm -noprompt

    Not only is our AD much cleaner, our SMS console is free of stale accounts as well.

    Here is a link to another site with some additional information on the filtering capabilities of DSQUERY:

    More on DSQUERY attribute filtering -

    Hope this helps. :)
    LVL 11

    Accepted Solution

    this cant be done with a number of external ad helper apps. the only one i can think of that has a free edition is the one below. most of them are paid apps

    ad manager plus
    LVL 57

    Expert Comment

    by:Mike Kline
    ...and a quick follow up to anyone that may find this thread in the future and want to know more about computers and their passwords.  The DS team has a good blog entry on that here:
    Machine Account Password Process
    LVL 11

    Expert Comment

    by:Forrest Burris
    oops i said 'CANT' i meant to say CAN

    Author Comment

    thanks guys .
    addihul's solution was the easiest so i award the points to addihul. i don't know whether the other solutions work i did not try them coz they looked cumbersome.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Welcome to my series of short tips on migrations. Whilst based on Microsoft migrations the same principles can be applied to any type of migration. My first tip is around source server preparation. No migration is an easy migration, there is a…
    A quick step-by-step overview of installing and configuring Carbonite Server Backup.
    This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
    This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now