Painting Reflection

waiting for the bus on ossington and dundas

KitKatneko

Friends talking

at the distillery

KitKatneko

Wood on lake

huron

KitKatneko

Wind surfer

Blooming

KitKatneko

My Car

Blooming

KitKatneko

Sakura

Blooming

KitKatneko

Sakura

in Washington DC

Sakura

Philadelphia hall

Wow!

Action

Central Park

NYC, from the top of Rockfeller (?) building. Better than the Empire State as there is no windows nor fences.

Action

Warning

Emergency Exit Only

Action

Bloody ATM

litterally

Action

Summer Winter time

still cold in Toronto

Action

Where is my bike

I remember titling another picture just like this, back in Chofu, a bike in the middle of hundreds. here

Action

Use the AD mmc to find locked out accounts

Oct 12th, 2006 by Florian | 2

AD mmc is a nifty tool to do your daily AD objects management. I have seen since not using this tool at full capacity. What a waste. Beside managing all the objects of your domains, did you know it can also save queries?

A usefull query is to find out accounts that are locked out.

Just open the Active Directory Users and Computers console, right-click on Saved Queries in the console tree and select New –> Query. Type a name and description for the query, specify a query root (where in your namespace your query begins searching), and click the Define Query button. Since there’s no default option for finding locked-out accounts in the Common Queries box, select Custom Search instead to open the Find Custom Search box. Then select the Advanced tab and enter the following LDAP string in the Enter LDAP Query textbox:

(&(objectCategory=Person)(objectClass=User)(lockoutTime>=1))

Alternatively there is the command line way:

dsquery is a power command line query tool, to find everything about your AD objects.

dsquery * domainroot -filter “(&(objectCategory=Person)(objectClass=User)(lockoutTime>=1))”

will find out all the locked out accounts on your domain.

Tips: You will get a full DN list with this command. You can make the output more readable piping the command with DSget.

dsquery * domainroot -filter “(&(objectCategory=Person)(objectClass=User)(lockoutTime>=1))” | dsget user -samid

will give you only their names!

2 Comments on “Use the AD mmc to find locked out accounts”


  1. Wasim said:

    Hello Friend,

    I tried using custom query, but the result was not at all accurate. what can be the reason? non of the listed accounts was locked out.

    Thanks.


  2. Florian said:

    Wasim, the query is only run againts the DC you are connected to. It will not query all the DC when your account may be locked at. To make sure, you will have to connect to another DC and run the same query again or wait for the account lock out information to replicate to the DC you are connected to.

Leave a Reply