Hello Experts,
I am trying to find out a way to query AD using the ADU&C interface in a way that will show me the disabled accounts that were disabled before a specific date.
Basically i need to know what the field or userAccountControl code is, if there is one at all.
I curentlly have a saved query to gather all my disabled users which looks like this:
(&(objectCategory=person)(
objectClas
s=user)(us
erAccountC
ontrol:1.2
.840.11355
6.1.4.803:
=2))
I also played around with a query that would give me all my disabled users created before a specific date which looks like this:
(&(&(objectCategory=person
)(objectCl
ass=user)(
userAccoun
tControl:1
.2.840.113
556.1.4.80
3:=2)
(whenCreated>=200508010000
00.0Z)))
This query does not quite meet my needs but gets me closer to the end goal.
Any help would be great.
Dingo
Start Free Trial