Help, finding out password expiry date of specific user

Welcome Forums General PowerShell Q&A Help, finding out password expiry date of specific user

This topic contains 3 replies, has 3 voices, and was last updated by

 
Participant
1 year ago.

  • Author
    Posts
  • #93654

    Participant
    Points: 0
    Rank: Member

    Hi All,

    What short PowerShell command can I use to find out password expiration date of a specific user?

    Thank you,
    redhook

  • #93661

    Participant
    Points: 1,166
    Helping Hand
    Rank: Community Hero

    Have you heard about a technology enabling people to search the internet for specific things? 😉

    Powershell Active Directory password expiration date

  • #93673

    Inactive
    Points: 0
    Rank: Member

    You can try the below scipt:

    Import-Module ActiveDirectory
    Get-ADUser -SearchBase "OU=TestOU,DC=TestDomain,DC=Local" -filter {Enabled -eq $True -and PasswordNeverExpires -eq $False} -Properties "SamAccountName","msDS-UserPasswordExpiryTimeComputed" |
    Select-Object -Property "SamAccountName", @{Name="Password Expiry Date"; Expression={[datetime]::FromFileTime($_."msDS-UserPasswordExpiryTimeComputed")}} |
    Format-Table

    You may also take help from the following links which assists you to email users a active directory password expiration notification and schedule reports, alerts with all password expiration related tasks.

    http://password-expiration-notification.blogspot.in/

    http://www.morgantechspace.com/2015/03/powershell-get-ad-users-password-expiry-date.html

    • #95188

      Participant
      Points: 0
      Rank: Member

      thank you for your response, but, is there a way to revert back on this?

The topic ‘Help, finding out password expiry date of specific user’ is closed to new replies.

denizli escort samsun escort muğla escort ataşehir escort kuşadası escort