I wanted a simple way to display all the locked out users on my domain. So I created this simple query to do so.
To use this::
1. Open Active Directory Users and Computer.
2. Right click on "Saved Queries"
3. Select " New " - > "Query"
4. Select " Define Query "
5. In the find box select " Custom Query ".
6. Select the " Advance " Tab.
7. Paste the following code in:
(objectCategory=Person)(objectClass=User)(lockoutTime>=1)
8. Give it a name and save the query.
All Done!
-- Sal