# Help, finding out password expiry date of specific user

**URL:** <https://forums.powershell.org/t/help-finding-out-password-expiry-date-of-specific-user/10128>\
**Category:** PowerShell Help\
**Created:** [February 14, 2018, 7:02pm UTC](https://forums.powershell.org/t/help-finding-out-password-expiry-date-of-specific-user/10128 "2018-02-14T19:02:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![redhook](https://avatars.discourse-cdn.com/v4/letter/r/ed655f/32.png) [@redhook](https://forums.powershell.org/u/redhook)\
**Post date:** [February 14, 2018, 7:02pm UTC](https://forums.powershell.org/t/help-finding-out-password-expiry-date-of-specific-user/10128/1 "2018-02-14T19:02:46Z")

</div>

Hi All,

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

Thank you,  
redhook

---

<div class="post-metadata">

**Author:** ![Olaf](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/olaf/32/992_2.png) [@Olaf](https://forums.powershell.org/u/Olaf)\
**Post date:** [February 14, 2018, 7:39pm UTC](https://forums.powershell.org/t/help-finding-out-password-expiry-date-of-specific-user/10128/2 "2018-02-14T19:39:16Z")

</div>

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

[Powershell Active Directory password expiration date](http://lmgtfy.com/?q=Powershell+Active+Directory+password+expiration+date)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/powershell/original/1X/385e4f9fe133561ad30a814262fe0e0ae6bc3ef0.png) [@system](https://forums.powershell.org/u/system)\
**Post date:** [February 15, 2018, 3:58am UTC](https://forums.powershell.org/t/help-finding-out-password-expiry-date-of-specific-user/10128/3 "2018-02-15T03:58:14Z")

</div>

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](https://www.lepide.com/lepideauditor/password-expiration-notification.html) and schedule reports, alerts with all password expiration related tasks.

[http://password-expiration-notification.blogspot.in/](http://password-expiration-notification.blogspot.in/)

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

---

<div class="post-metadata">

**Author:** ![redhook](https://avatars.discourse-cdn.com/v4/letter/r/ed655f/32.png) [@redhook](https://forums.powershell.org/u/redhook)\
**Post date:** [March 5, 2018, 11:47am UTC](https://forums.powershell.org/t/help-finding-out-password-expiry-date-of-specific-user/10128/4 "2018-03-05T11:47:23Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 8:36pm UTC](https://forums.powershell.org/t/help-finding-out-password-expiry-date-of-specific-user/10128/5 "2024-05-16T20:36:15Z")

</div>


