Skip to content

Instantly share code, notes, and snippets.

@soulhakr
Last active December 16, 2022 17:48
Show Gist options
  • Save soulhakr/48a4989d922fba67e7cee186c37dbd58 to your computer and use it in GitHub Desktop.
Save soulhakr/48a4989d922fba67e7cee186c37dbd58 to your computer and use it in GitHub Desktop.
[Get AD User Password Expiration Date (Powershell)] #Powershell #pwsh #windows
$ADUser = (Get-ADUser 'exampleuser' -Properties msDS-UserPasswordExpiryTimeComputed)
[DateTime]::FromFileTime($ADUser.'msDS-UserPasswordExpiryTimeComputed')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment