JSI Tip 9914. ADFind.exe freeware allows you to save and recall query filters.


The new version of ADFind.exe freeware allows you to define and recall a file of filter attributes.

I defined ADFuser.qf, which contains:

objectcategory=Person
objectClass=User
Using:
adfind -ef c:\util\ADFcsv.cf -ff c:\util\ADFuser.qf sAMAccountName distinguishedName userPrincipalName MemberOf userAccountControl lastLogon
might generate an output that looks like:
"sAMAccountName";"distinguishedName";"userPrincipalName";"MemberOf";"userAccountControl";"lastLogon"
"Test";"CN=Test.User,CN=Users,DC=JSIINC,DC=COM";"[email protected]";"CN=Accounts Payables,CN=Users,DC=JSIINC,DC=COM#CN=accountants,CN=Users,DC=JSIINC,DC=COM";"66048 \[NORMAL_USER(512);NO_EXPIRE(65536)\]";"2005/11/15-23:55:00 Eastern Standard Time"
NOTE: See the following tips:
How can I save and recall the switches I use with ADFind.exe freeware?

How can I use environment variables to define commonly used ADFind.exe freeware switches?

ADFind.exe freeware can use :AND: and :OR: instead of :1.2.840.113556.1.4.803: and :1.2.840.113556.1.4.804: to define a bitwise filter.



Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish