Announcement

Collapse
No announcement yet.

List all Workstations that did not logon in the last x days

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

  • List all Workstations that did not logon in the last x days

    I tried this in LDAP but there seem not to be any lastlogon attribute for computers.I tried lastlogon used by user accounts, did not work.
    Server 2003 R2, Domain = native 2003

    Whatever solution..KIX, VBS, LDAP...all would be fine.

    The task seem to be easy but I find no solutuon.

    Task:
    Find all workstations (not servers) that did not logon since x days.

    Thx for all your help and ideas in advance
    Last edited by Morgenstern72; 23rd June 2009, 16:24.

  • #2
    Re: List all Workstations that did not logon in the last x days

    Workstations don't log in, users log in. What are you trying to find out? What workstations have not been used in X days?

    Comment


    • #3
      Re: List all Workstations that did not logon in the last x days

      You can use the lastLogonTimeStamp only if WinK3 domain is in wk3 domain functional level.
      Otherwise you could use the pwdLastSet for age options - by default, the system resets the password for computer objects every 30 days. If a computer object has not had its password set in 150 days, then you know that the computer has not been on the network in at least 120 days.

      vbscript samples:
      - http://www.rlmueller.net/PwdLastChanged.htm
      - http://www.rlmueller.net/MoveOldComputers.htm

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


      \Rems

      This posting is provided "AS IS" with no warranties, and confers no rights.

      __________________

      ** Remember to give credit where credit's due **
      and leave Reputation Points for meaningful posts

      Comment


      • #4
        Re: List all Workstations that did not logon in the last x days

        Originally posted by joeqwerty View Post
        Workstations don't log in, users log in. What are you trying to find out? What workstations have not been used in X days?
        Exactly, thats it!

        Comment


        • #5
          Re: List all Workstations that did not logon in the last x days

          Originally posted by Rems View Post
          You can use the lastLogonTimeStamp only if WinK3 domain is in wk3 domain functional level.
          Otherwise you could use the pwdLastSet for age options - by default, the system resets the password for computer objects every 30 days. If a computer object has not had its password set in 150 days, then you know that the computer has not been on the network in at least 120 days.

          vbscript samples:
          - http://www.rlmueller.net/PwdLastChanged.htm
          - http://www.rlmueller.net/MoveOldComputers.htm

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


          \Rems
          Thats the same I can do with DSQUERY, isn't it?

          Comment

          Working...
          X