Created
March 29, 2016 10:28
-
-
Save michaelrice136/bb50b1cf37f166d00049 to your computer and use it in GitHub Desktop.
Get all AD users that are locked out or have expired passwords
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 -Filter * -Properties PasswordExpired, LockedOut | ? { ` | |
($_.PasswordExpired -EQ $True) -OR ` | |
($_.LockedOut -EQ $True) } | Format-Table |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment