
This is a handy and simple script that will give you an alphabetically sorted list of user accounts currently locked out.
|
import-module activedirectory; get-aduser -filter * -properties lockedout | where {$_.lockedout -eq $true} | sort name | select name; |
