Handy Locked-out Domain Users List

Here’s a quick way to get a domain account list for those users that are currently locked.

Open Active Directory Users and Computers console and under Saved Queries right click on New->Query .

A new window comes out and click on Define Query, when the Find Common Queries appears choose Custom Search, Advanced and under the Enter LDAP query type :

(&(&(&(objectCategory=person)(objectClass=user)(lockoutTime:1.2.840.113556.1.4.804:=4294967295))))

Save and refresh your saves query to get the list in a snap !

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s