Last active
December 16, 2022 17:48
-
-
Save soulhakr/48a4989d922fba67e7cee186c37dbd58 to your computer and use it in GitHub Desktop.
[Get AD User Password Expiration Date (Powershell)] #Powershell #pwsh #windows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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