I would also recommend adfind. This is a freeware utility found at:
http://joeware.net/freetools/tools/adfind/index.htm
Example:
Want to find all users in your organization that don't have a home folder
defined?
adfind -f
"(&(objectCategory=person)(objectClass=user)(!(hom eDirectory=*)))" -b
"ou=users,dc=YourDomain,dc=com" samaccountname homeDirectory -list
--
Paul Bergson
MVP - Directory Services
MCTS, MCT, MCSE, MCSA, Security+, BS CSci
2008, 2003, 2000 (Early Achiever), NT4
http://www.pbbergs.com
Please no e-mails, any questions should be posted in the NewsGroup
This posting is provided "AS IS" with no warranties, and confers no rights.
"Richard Mueller [MVP]" <rlmueller-> wrote in
message news:%...
>
> "Zoddy" <> wrote in message
> news:BD01E832-0202-4D0F-B1E6-...
>> If I have a particular field lets say the attribule EmployeeId for
>> example,
>> how can I export the value of the EmployeeID for all users in the domain?
>
> I would recommend using Joe Richards' free adfind.exe utility:
>
> http://www.joeware.net/freetools/tools/adfind/index.htm
>
> It probably can also be done with dsquery and dsget, but I never can
> figure out the syntax. In a VBScript program you can use ADO. For more see
> this link:
>
> http://www.rlmueller.net/ADOSearchTips.htm
>
> --
> Richard Mueller
> MVP Directory Services
> Hilltop Lab - http://www.rlmueller.net
> --
>
>