Adfind -b dc=domain,dc=com -f "EmployeeID=somenumber" displayName
sAMAccountName

As to the other - take a look at IISADMPWD on support.microsoft.com or
any number of scripting books.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Douglas M. Long
Sent: Tuesday, November 16, 2004 11:20 AM
To: [EMAIL PROTECTED]
Subject: [ActiveDir] adfind

How to I return only certain attributes with adfind? I would just like
to get Display name and sam account name. I am just using it to find
users based on EmployeeID

Adfind dc=domain, dc=com -f "EmployeeID=somenumber"

I would eventually like to write a graphical tool to find that user and
then be able to change their password through the GUI, but that is
something I will work on when I get the time (or is there something like
that already out there)


Thanks

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/

Reply via email to