TIMTOWTDI
 
But one way...
 
adfind -gc -b "" -f "&(objectcategory=person)(samaccountname=*)" name
 
And if you want to filter out everything but the names...
 
adfind -gc -b "" -f "&(objectcategory=person)(samaccountname=*)" name |grep -i ">name:"
 
 
[Tue 11/16/2004 12:07:22.25]
F:\DEV\cpp\FindNBT>adfind -gc -b "" -f "&(objectcategory=person)(samaccountname=*)" name |grep -i ">name:"
 
AdFind V01.24.00cpp Joe Richards ([EMAIL PROTECTED]) September 2004
 
File STDIN:
>name: $$Jricha34
>name: collision\0ACNF:efc83ba9-412f-452e-ad49-72f91d31c201
>name: $jricha34
>name: $jricha34
>name: rallen
>name: SystemMailbox{4077C9F4-A03A-4A75-9FE2-1608D0B6665A}
>name: SystemMailbox{515CF5C0-A838-4E67-B97A-49E7861C4F18}
>name: SystemMailbox{626105E6-15E7-418B-80DC-F0DC61EC038A}
>name: SystemMailbox{A3B7C24A-E517-4AB6-8FE0-196128665800}
>name: adminid
>name: Administrator
>name: Administrator
>name: ADORGTESTUSER
<SNIP>
 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Harding, Devon
Sent: Tuesday, November 16, 2004 3:23 PM
To: [EMAIL PROTECTED]
Subject: RE: [ActiveDir] adfind and -excl

How do I do this for all users in the Forest.  Let’s say I only want to list the names of the users, that’s it.  How is this done?

 

-Devon

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael B. Smith
Sent: Tuesday, November 16, 2004 11:09 AM
To: [EMAIL PROTECTED]
Subject: RE: [ActiveDir] adfind and -excl

 

It's built-in.  :-)

 

For example:  adfind -root -f "name=Michael B. Smith" name cn proxyaddresses

 

Lists my name, my common name, and all of my proxyaddresses. If I don't have the attributes there, it lists all attributes.

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Harding, Devon
Sent: Tuesday, November 16, 2004 8:38 AM
To: [EMAIL PROTECTED]
Subject: RE: [ActiveDir] adfind and -excl

Anyone?

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Harding, Devon
Sent: Monday, November 15, 2004 2:51 PM
To: [EMAIL PROTECTED]
Subject: [ActiveDir] adfind and -excl

 

Adfind.exe has a switch called –excl which basically exclude certain attributes.  Does anyone know if it can do the opposite?  I want to specify only certain attributes to include. (too many to exclude)

 

Devon Harding

Windows Systems Engineer

Southern Wine & Spirits - GSD

954-602-2469

 


__________________________________
This message and any attachments are solely for the intended recipient and may contain confidential or privileged information. If you are not the intended recipient, any disclosure, copying, use or distribution of the information included in the message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail and immediately and permanently delete this message and any attachments. Thank You.


__________________________________
This message and any attachments are solely for the intended recipient and may contain confidential or privileged information. If you are not the intended recipient, any disclosure, copying, use or distribution of the information included in the message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail and immediately and permanently delete this message and any attachments. Thank You.


__________________________________
This message and any attachments are solely for the intended recipient and may contain confidential or privileged information. If you are not the intended recipient, any disclosure, copying, use or distribution of the information included in the message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail and immediately and permanently delete this message and any attachments. Thank You.

Reply via email to