Yep, that grep should do it... [Tue 12/21/2004 20:10:06.30] F:\DEV\cpp\AdFind>adfind -default -s one -f * whencreated whenchanged |grep ">"
AdFind V01.25.01cpp Joe Richards ([EMAIL PROTECTED]) December 2004 File STDIN: >whenCreated: 20040309041846.0Z >whenChanged: 20041012165136.0Z >whenCreated: 20040309041843.0Z >whenChanged: 20041012165136.0Z >whenCreated: 20040309041844.0Z >whenChanged: 20041012165136.0Z >whenCreated: 20040613003804.0Z >whenChanged: 20041012165227.0Z >whenCreated: 20040309041844.0Z >whenChanged: 20041012165136.0Z >whenCreated: 20040309041844.0Z >whenChanged: 20041016173732.0Z >whenCreated: 20040309041843.0Z >whenChanged: 20041012165136.0Z >whenCreated: 20040612231926.0Z >whenChanged: 20041012165227.0Z >whenCreated: 20040309041844.0Z >whenChanged: 20041012165136.0Z >whenCreated: 20040309041844.0Z >whenChanged: 20041012165227.0Z >whenCreated: 20040309041843.0Z >whenChanged: 20041012165136.0Z >whenCreated: 20040327224326.0Z >whenChanged: 20041012165227.0Z >whenCreated: 20040309041843.0Z >whenChanged: 20041012165136.0Z [Wed 12/22/2004 16:22:09.19] F:\DEV\cpp\AdFind> -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dan HINCKLEY Sent: Wednesday, December 22, 2004 9:55 AM To: ActiveDir@mail.activedir.org Subject: RE: [ActiveDir] DSget Contacts in AD I mean exclude the entire DN output: the DN label + its string. All I want to see in the output are the attr's that I list/choose. At 18:14 12/10/2004, you wrote: >How about > >Command | grep ">" > >Or do you mean the dn: string prefixing the dn being returned? > >If the latter, you can have it returned distinguishedname as one of the >attributes and then use the command above but you will still get the >attribute labels. If you just want DN strings, you can use the -dsq >option but you won't get attributes output at all then. > > joe > > > >-----Original Message----- >From: [EMAIL PROTECTED] >[mailto:[EMAIL PROTECTED] On Behalf Of Dan HINCKLEY >Sent: Friday, December 10, 2004 10:14 AM >To: ActiveDir@mail.activedir.org >Subject: RE: [ActiveDir] DSget Contacts in AD > >Any way to exclude the DN from the output? > >At 15:44 12/10/2004, you wrote: > >C:\>adfind -b ou=companies,dc=domain,dc=com -f > >"(&(objectcategory=Person)(objectClass=contact > >))" cn createTimeStamp > > > >AdFind V01.17.00cpp Joe Richards ([EMAIL PROTECTED]) May 2004 > > > >Using server: wil-dc01.bbtnet.com > > > >dn:CN=Test User,CN=Users,DC=bbtnet,DC=com > > >createTimeStamp: 20041210144136.0Z > > >cn: Test User > > > > > >1 Objects returned > > > > > > > >Specifying the attribute list tells ADFIND to return those attributes only. > >In your case, you'd use displayname, mail, and > >physicaldeliveryofficename for the attributes you want. > > > > > >Al > > > >-----Original Message----- > >From: [EMAIL PROTECTED] > >[mailto:[EMAIL PROTECTED] On Behalf Of Dan HINCKLEY > >Sent: Friday, December 10, 2004 9:27 AM > >To: ActiveDir@mail.activedir.org > >Subject: RE: [ActiveDir] DSget Contacts in AD > > > >I had it set to 500 because for any limit size above that (0, or > >1500, > >etc.) it fails with that error. > > > >I've read through the ADfind docs and must not be alert enough to see > >how to spec the attribs I want. How is it done? > > > >At 15:17 12/10/2004, you wrote: > > >You may misunderstand ADFIND. It will allow you to specify the > > >attribs you want vs. which one's you don't want last I checked. > > > > > >As for your DSQUERY command, why are you limiting to 1000 on the > > >one that doesn't work? Why not leave it at 0 ? > > > > > >Al > > > > > >-----Original Message----- > > >From: [EMAIL PROTECTED] > > >[mailto:[EMAIL PROTECTED] On Behalf Of Dan > > >HINCKLEY > > >Sent: Friday, December 10, 2004 8:16 AM > > >To: ActiveDir@mail.activedir.org > > >Subject: [ActiveDir] DSget Contacts in AD > > > > > >I find DSget works like a charm retrieving user info like this: > > > > > >dsquery user ou=companies,dc=domain,dc=com -limit 0 | dsget user > > >-display -email -office -acctexpires > d:\temp\dsquery.txt > > > > > >But when I try to retrieve more than about 500 contacts like this: > > > > > >dsquery contact ou=companies,dc=domain,dc=com -limit 1000 | dsget > > >contact -display -email -office > d:\temp\dsquerycontacts.txt > > > > > >I get this error: > > > > > >dsget failed:Value for `Target object for this command' has > > >incorrect format > > > > > >The Contacts folder has a series of subfolders and a few > > >distribution groups mixed in; might they cause this? > > > > > >ADfind doesn't seem to give me the option to specify which fields I > > >wnat to retrieve, only to exclude fields, and there are too many to > > >do > >that. > > > > > > > > >++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > >Dan Hinckley t: (41 22) 999 0183 > > >Information Management Group f: (41 22) 999 0010 > > >IUCN, The World Conservation Union e: [EMAIL PROTECTED] > > >1196 Gland, Switzerland w: http://iucn.org/ > > > > > >List info : http://www.activedir.org/mail_list.htm > > >List FAQ : http://www.activedir.org/list_faq.htm > > >List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/ > > >List info : http://www.activedir.org/mail_list.htm > > >List FAQ : http://www.activedir.org/list_faq.htm > > >List archive: > > >http://www.mail-archive.com/activedir%40mail.activedir.org/ > > > >List info : http://www.activedir.org/mail_list.htm > >List FAQ : http://www.activedir.org/list_faq.htm > >List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/ > >List info : http://www.activedir.org/mail_list.htm > >List FAQ : http://www.activedir.org/list_faq.htm > >List archive: > >http://www.mail-archive.com/activedir%40mail.activedir.org/ > >List info : http://www.activedir.org/mail_list.htm >List FAQ : http://www.activedir.org/list_faq.htm >List archive: >http://www.mail-archive.com/activedir%40mail.activedir.org/ > >List info : http://www.activedir.org/mail_list.htm >List FAQ : http://www.activedir.org/list_faq.htm >List archive: >http://www.mail-archive.com/activedir%40mail.activedir.org/ List info : http://www.activedir.org/mail_list.htm List FAQ : http://www.activedir.org/list_faq.htm List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/ List info : http://www.activedir.org/mail_list.htm List FAQ : http://www.activedir.org/list_faq.htm List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/