Announcement

Collapse
No announcement yet.

Computer Account Cleanup

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Computer Account Cleanup

    I was wondering if anyone can tell me how to perform a clean up to remove old computer accounts from our active directory domain. I know in windows 2003 you can user the DSQUERY command to pipe through a list of computers that havenít been used for x amount of time then delete the computer account. Is there a way to perform this operation on a windows 2000 domain?

    Thanks

    Andy

  • #2
    Re: Computer Account Cleanup

    i think you need to script it..
    you can start here:

    http://www.computerperformance.co.uk/ezine/ezine85.htm
    Marcel
    Technical Consultant
    Netherlands
    http://www.phetios.com
    http://blog.nessus.nl

    MCITP(EA, SA), MCSA/E 2003:Security, CCNA, SNAF, DCUCI, CCSA/E/E+ (R60), VCP4/5, NCDA, NCIE - SAN, NCIE - BR, EMCPE
    "No matter how secure, there is always the human factor."

    "Enjoy life today, tomorrow may never come."
    "If you're going through hell, keep going. ~Winston Churchill"

    Comment


    • #3
      Re: Computer Account Cleanup

      Have a look at this:

      http://forums.petri.com/showthread.php?t=3815

      Michael
      Michael Armstrong
      www.m80arm.co.uk
      MCITP: EA, MCTS, MCSE 2003, MCSA 2003: Messaging, CCA, VCP 3.5, 4, 5, VCAP5-DCD, VCAP5-DCA, ITIL, MCP, PGP Certified Technician

      ** Remember to give credit where credit is due and leave reputation points sigpic where appropriate **

      Comment


      • #4
        Re: Computer Account Cleanup

        Query the AD to find tombstoned machines for X amount of days:

        If you have Windows 2003 with Raised Func. levels:
        Run: dsquery computer -inactive X
        (where X is the number of weeks)

        If you have 2000 or 2003 without Raised levels:
        Run: dsquery computer -stalepwd X
        (where X is the number of days)

        Comment

        Working...
        X