M
Matjaz Ladava [MVP]
The closest you could get to this by using a single query would be with
query
(&(objectClass=user)(objectCategory=person)(!lockoutTime=0))
This would return users, which have account locked out. The only problem is
the system defined account lockout duration, as account can be unlocked
automatically after specific time, but lockoutTime attribute would still
contain a value which is cleared after user loges to the system again.
--
Regards
Matjaz Ladava, MCSE, MCSA, MCT, MVP
Microsoft MVP - Active Directory
(e-mail address removed), (e-mail address removed)
http://ladava.com
query
(&(objectClass=user)(objectCategory=person)(!lockoutTime=0))
This would return users, which have account locked out. The only problem is
the system defined account lockout duration, as account can be unlocked
automatically after specific time, but lockoutTime attribute would still
contain a value which is cleared after user loges to the system again.
--
Regards
Matjaz Ladava, MCSE, MCSA, MCT, MVP
Microsoft MVP - Active Directory
(e-mail address removed), (e-mail address removed)
http://ladava.com