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

Jerold Schulman

November 16, 2005

1 Min Read
ITPro Today logo in a gray background | ITPro Today


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=PersonobjectClass=User

Using:

adfind -ef c:utilADFcsv.cf -ff c:utilADFuser.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.



Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like