J
Jay
Ok..in my ADUC i have a saved query folder what is this used for....its 2003
server...so i could really see on MS what its for....
server...so i could really see on MS what its for....
Matjaz Ladava said:Jeff, what about using userAccountControlFlag for this like
(&(objectClass=user)(UserAccountControl:1.2.840.113556.1.4.803:=16))
UserAccountControlFlag's 4 bit sets lockout status of the account.
--
Regards
Matjaz Ladava, MCSE (NT4 & 2000), Windows MVP
(e-mail address removed)
http://ladava.com
queryJeff Jones said:If you create a new saved query and define a custom query you can get most
of the way there. After you click Define Query and the query builder comes
up, select Custom Search in the Find dropdown. Then click on the Advanced
tab and enter
(&(objectClass=user)(objectCategory=person)(!lockoutTime=0))
Hit OK and then OK to create the query.
The results of this query are any users that have had their account locked
out and have not logged on past the account lockout duration to reset their
lockoutTime attribute. So depending on the lockout duration that is
configured for the domain and whether or not the person has logged on since
the account has been locked out you can determine if the account is truely
locked out.
At least this can narrow down the user accounts you have to look through.
--
Jeff Jones [MS]
Active Directory Administration Tools Development
Microsoft Corporation
This posting is provided "AS IS" with no warranties, and confers no rights.
MadDHatteR said:I've used this for disabled accounts, etc. How would I generate a
Jeff Jones said:The userAccountControl flag can be used to unlock the account but it cannot
be used to determine if the account is locked out via a search. The only
accurate way of determining if the account is locked out is to query the
lockoutTime and then for each object returned get the
userAccountControlComputed attribute which will accurately depict whether or
not the account is truely locked out or if the user just hasn't logged on.
Unfortunately the userAccountControlComputed attribute wasn't added until
Windows Server 2003.
--
Jeff Jones [MS]
Active Directory Administration Tools Development
Microsoft Corporation
This posting is provided "AS IS" with no warranties, and confers no rights.
Matjaz Ladava said:Jeff, what about using userAccountControlFlag for this like
(&(objectClass=user)(UserAccountControl:1.2.840.113556.1.4.803:=16))
UserAccountControlFlag's 4 bit sets lockout status of the account.
--
Regards
Matjaz Ladava, MCSE (NT4 & 2000), Windows MVP
(e-mail address removed)
http://ladava.com
queryJeff Jones said:If you create a new saved query and define a custom query you can get most
of the way there. After you click Define Query and the query builder comes
up, select Custom Search in the Find dropdown. Then click on the Advanced
tab and enter
(&(objectClass=user)(objectCategory=person)(!lockoutTime=0))
Hit OK and then OK to create the query.
The results of this query are any users that have had their account locked
out and have not logged on past the account lockout duration to reset their
lockoutTime attribute. So depending on the lockout duration that is
configured for the domain and whether or not the person has logged on since
the account has been locked out you can determine if the account is truely
locked out.
At least this can narrow down the user accounts you have to look through.
--
Jeff Jones [MS]
Active Directory Administration Tools Development
Microsoft Corporation
This posting is provided "AS IS" with no warranties, and confers no rights.
I've used this for disabled accounts, etc. How would I generate ato
list domain-wide locked out accounts?
\\ MadDHatteR
This container is used to store commonly used queries.