Re: How to determine last logon time for a computer account in a domain

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Joe Richards [MVP] (humorexpress_at_hotmail.com)
Date: 05/09/04


Date: Sun, 09 May 2004 13:10:42 -0400

Hey thanks Cary. :o)

   joe

--
Joe Richards Microsoft MVP Windows Server Directory Services
www.joeware.net
Cary Shultz [A.D. MVP] wrote:
> Yuri,
> 
> Take a look at http://www.joeware.net and look in the free C++ section for
> oldcmp.  This is a really awesome tool that I use whenever I want to make
> sure that the computer accounts in any of the environments that I manage are
> "clean and up-to-date".  It is really easy and Joe has built in some added
> security ( for example, you have to first disable the computer account
> objects before you can delete them and you need to add two extra switches -
> essentially making this absolutely sure that you are doing what you really
> intend to be doing ).
> 
> There are also some utilities - such as ADJanitor - that you can purchase.
> I have looked at the evaluation version of ADJanitor and it looks nice.  You
> have to make the choice if you want a free command line utility ( and I - as
> well as many others - can vouch for its accuracy and efficiency ) or a
> paid-for GUI utility.  I believe that ADJanitor costs around $50.00 but I
> believe that it does both computer accounts as well as user account.
> 
> Have fun with this.
> 
> Cary
> 
> 
> BTW - I like the dhtml reports.  This will make sense when you use this
> wonderful tool.
> "Yuri Palagin" <ypal@***ANTISPAM***utc.ru> wrote in message
> news:r0ppm1-l5b2.ln1@news.utc.ru...
> 
>>Hello all,
>>
>>Win2k domain with Active Directory on two w2k+sp4 controllers; about 200
>>computers w9x/NT4/w2k/XP/2003 logging on to the domain.
>>What I need is to purge no longer used computer accounts from AD. How can
> 
> I
> 
>>determine last logon time for both pre-w2k and post-w2k computer accounts
> 
> to
> 
>>decide which are to be deleted? Maybe there is a sample vbscript
> 
> someplace?
> 
>>Is that applicable to pre-w2k accounts at all?
>>
>>Thank you,
>>
>>ypal
>>
> 
> 
> 


Relevant Pages