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: [EMAIL PROTECTED] 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/