How to delete old PC accounts from active directory?

Is there a free tool, or batch file I can use to delete all computer accounts that have not been seen by the domain controller, in lets say 60 days (or 90, or 120)? There are a bunch of PCs I have scrapped whose corresponding accounts I neglected to delete.
This is a Windows 2003 Domain with a total of 60 onsite PC's.
HardwareDudeAsked:
Who is Participating?
 
Mike KlineCommented:
I was part of that previous discussion and still recommend oldcmp :)

One nice thing about oldcmp is that Joe has put a lot of safety features in.   Typical use is to dislable after a certain amount of days then delete.

For example disable after 90 and delete after 180.

If you have clusters be careful of that computer account.

Another tool I'm going to soon review for my blog is AD Tidy   http://www.cjwdev.co.uk/Software/ADTidy/Info.html

haven't fully tested so can't 100% recommend but if you prefer a GUI that could be a nice tool.


Thanks

Mike
0
 
c_a_n_o_nCommented:
More specifically to that discussion:

OldCmp
http://www.joeware.net/freetools/tools/oldcmp/index.htm

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.