List all users who reset their passwords

Welcome Forums General PowerShell Q&A List all users who reset their passwords

This topic contains 1 reply, has 2 voices, and was last updated by

 
Participant
9 months, 3 weeks ago.

  • Author
    Posts
  • #97499

    Participant
    Points: 1
    Rank: Member

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

  • #97505

    Participant
    Points: 230
    Helping Hand
    Rank: 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.

The topic ‘List all users who reset their passwords’ is closed to new replies.