Stockbrugger, Brian L. wrote:
I am trying to run a query against AD and dump to a file all users that have employeeID attribute set to NULL. Is there a way to do this?
Try (may wrap)
dsquery * "dc=where-you-want-to-start-searching" -limit 0 -scope subtree -filter "(&(!(employeeid=*))(objectcategory=user))" -attr employeeid distinguishedName > no-empid.txt
This will look for any user objects that don't have an employeeid set
al
Thanks - Brian
--
Al Lilianstrom CD/CSS/CSI [EMAIL PROTECTED] 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/
