Last active
August 22, 2017 21:22
-
-
Save tom-henderson/2db3f125284e1d49b7f4f80968fbfd5a to your computer and use it in GitHub Desktop.
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
Get-ADUser -SearchBase "OU=AD Users,DC=example,DC=com" -Filter * -Properties msDS-UserPasswordExpiryTimeComputed, * | Sort Name | Select Name, Created, PasswordLastSet, @{Name="PasswordExpires";Expression={[datetime]::FromFileTime($_."msDS-UserPasswordExpiryTimeComputed")}}, PasswordExpired, PasswordNeverExpires, LockedOut, Enabled | Out-GridView |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment