Results 1 to 6 of 6

Thread: Determine Last Date of Computer Logon in AD Domain

  1. #1
    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

  2. #2
    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?

  3. #3
    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.

  4. #4
    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?

  5. #5
    Join Date
    Dec 2004
    Posts
    420
    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.

  6. #6
    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.

Similar Threads

  1. Replies: 3
    Last Post: 08-06-2011, 03:21 PM
  2. Replies: 5
    Last Post: 26-10-2009, 07:20 PM
  3. Replies: 3
    Last Post: 28-07-2009, 05:03 PM
  4. User Logon and Account Expiration Date
    By Ralf in forum Active Directory
    Replies: 5
    Last Post: 18-12-2008, 01:29 PM
  5. domain logon script does not run
    By Onetoomany in forum Windows Server Help
    Replies: 4
    Last Post: 11-02-2008, 04:37 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •