List all users who reset their passwords

This topic contains 1 reply, has 2 voices, and was last updated by  Fredrik Kacsmarck 3 months, 3 weeks ago.

  • Author
    Posts
  • #97499

    Nilabh Verma
    Participant

    Can someone tell me the command to list all users who reset their own password through ARS (QADUser) in last 1 year?

  • #97505

    Fredrik Kacsmarck
    Participant

    Haven't used the products so I'm not sure about the integration.
    But if it's based on AD attributes you could use "pwdLastSet" or "PasswordLastSet" to give you that information.

    Using the built-in AD cmdlets in my example.

    E.g.

    $compareDate = (Get-Date).AddYears(-1)
    Get-ADUser -filter * -Properties PasswordLastSet | Where {$_.PasswordLastSet -lt $compareDate}
    

    Used a variable for the date to compare with for easier reading.
    But you could add it directly to that one line just add parenthesis.

You must be logged in to reply to this topic.