Go Back   TechArena Community > Technical Support > Computer Help > Windows Server > Active Directory
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



Determine Last Date of Computer Logon in AD Domain

Active Directory


Reply
 
Thread Tools Search this Thread
  #1  
Old 09-10-2009
Member
 
Join Date: Feb 2006
Posts: 214
Determine Last Date of Computer Logon in AD Domain

I am on a Windows 2003 server and Windows XP clients in AD Domain. Can anyone tell me a way to check when a computer and not a user, last logged into the domain? I have got many inactive computer accounts in the AD that I am on and I want to remove them. Thanks

Reply With Quote
  #2  
Old 09-10-2009
Member
 
Join Date: Nov 2005
Posts: 625
Re: Determine Last Date of Computer Logon in AD Domain

Have you tried to check the value of the lastLogon property of the computer object?
Reply With Quote
  #3  
Old 09-10-2009
Member
 
Join Date: Nov 2005
Posts: 631
Re: Determine Last Date of Computer Logon in AD Domain

You should also note taht lastLogon attribute is not replicated, so you will have to check its value on all DCs in the domain. Also, you may consider using lastLogonTimestamp attribute, which is replicated, but keep in mind that its not updated at every logon, this depends on the value of msDS-LogonTimeSyncInterval attribute normally.
Reply With Quote
  #4  
Old 10-10-2009
Member
 
Join Date: Feb 2006
Posts: 214
Re: Determine Last Date of Computer Logon in AD Domain

Thank you, but where can I find that value?
Reply With Quote
  #5  
Old 15-10-2009
Member
 
Join Date: Dec 2004
Posts: 419
You can get the proper tool for finding and dealing with old computer accounts from joeware website, download from there a free tool called oldcmp. Also, there are 2 example VBScript programs that find the last logon dates for all users in the domain linked on rlmueller website.
Reply With Quote
  #6  
Old 21-10-2009
Member
 
Join Date: Feb 2006
Posts: 214
Re: Determine Last Date of Computer Logon in AD Domain

Thanks for the simple answer, I am going to try that in sometime and let you know the results.
Reply With Quote
Reply

  TechArena Community > Technical Support > Computer Help > Windows Server > Active Directory
Tags: ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Determine Last Date of Computer Logon in AD Domain"
Thread Thread Starter Forum Replies Last Post
0x80070569: Logon failure: the user has not been granted the requested logon type at this computer. Adriana| Window 2000 Help 3 08-06-2011 03:21 PM
SOLVED error 1385 "Logon failure: the user has not been granted the requested logon type at this computer Kaalan Windows XP Support 5 26-10-2009 07:20 PM
Could not reliably determine the server's fully qualified domain name KuNaLBuntU Operating Systems 3 28-07-2009 05:03 PM
User Logon and Account Expiration Date Ralf Active Directory 5 18-12-2008 01:29 PM
domain logon script does not run Onetoomany Windows Server Help 4 11-02-2008 04:37 AM


All times are GMT +5.5. The time now is 11:29 AM.