Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Replace USERNAME next to the Get-ADUser command to select a valid user
- Get-AdUser USERNAME -Properties "DisplayName", "msDS-UserPasswordExpiryTimeComputed" |
- Select-Object -Property "Displayname",@{Name="ExpiryDate";Expression={[datetime]::FromFileTime($_."msDS-UserPasswordExpiryTimeComputed")}}
Advertisement
Add Comment
Please, Sign In to add comment