Sorry for the slightly OT question, but joeware.net seems to be under 
construction, so I can't get to the forums.

Here's what I wanna do ... list all disabled users, in all OUs, *except* 
one particular OU. And contructing LDAP style filters is far from my 
strong suit. And I will then feed this over to my dept mate, who will use 
the extracted file as input to clean up our Notes server.

adfind -b "DC=company,DC=com" -list -csv -nocsvheader -f 
(userAccountControl="514") givenName sn sAMAccountName

I know that a value of "514" means disabled; what I don't know is how to 
construct a compund expression to say (userAccountControl="514" AND OU != 
"name-of-OU").

Pointers? And how do you specify just the OU portion of the dn, anyway, 
for use in filters or return values? 

Thanks

-- 
Michael Leone
Network Administrator, ISM
Philadelphia Housing Authority
2500 Jackson St
Philadelphia, PA 19145
Tel:  215-684-4180
Cell: 215-252-0143
<mailto:[email protected]>

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

Reply via email to