Announcement

Collapse
No announcement yet.

Users that didnt Logon for some time - need AD Script

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

  • Users that didnt Logon for some time - need AD Script

    Hi guyz !

    im in a helpless need of your ad wiz help.

    im currently lookin for a way to query the AD/LDAP using a script and output a list of users that didnt logon for X time (say 1 week , or 2 weeks)

    the final goal is gettin those users onto a CSV file which evnetaully will turn into a report

    anyways of doing this?

    TY!

  • #2
    Re: Users that didnt Logon for some time - need AD Script

    you probably want to use the dsquery command:

    dsquery user -inactive NumberOfWeeks

    for more information on the dsquery command go here:

    http://technet2.microsoft.com/window....mspx?mfr=true
    Technology is only as good as those who use it

    My tech blog - wiredtek.wordpress.com

    Comment


    • #3
      Re: Users that didnt Logon for some time - need AD Script

      nice , very nice
      is there a way to narrow down the search for between date and date?

      Comment

      Working...
      X