How can I Search AD for a name?

  • Thread starter Thread starter Steve Gould
  • Start date Start date
S

Steve Gould

I have an issue in AD. When a meeting notice is sent to "all staff" (all AD
users) the sender will get an error that two people are not in Exchange any
more.

The two people in question have been gone a long time so it must have been
imported from Exchange 5.5 into 2003 when we migrated a year ago. My guess
is that the two people were once named as "send on behalf" delegates.

Since I really don't know where in AD they would be (could be elsewhere
other than delegates), how can I go about a search to find the names? What
tool would I use. I am really only familiar with ADSIEdit, Users and
Computers, etc. I'm sure there is a way to do an LDAP search, but I have
never used that tool.

Sincerely,

Steve Gould
 
Hello Steve
You can use dsquery or ldp.

dsquery * domainroot -filter "((Name=chris*))" -attr sAMAccountName Name

replace chris with the name you search for.

--
Regards
Christoffer Andersson
Microsoft MVP - Directory Services

No email replies please - reply in the newsgroup
 
\
dsquery * domainroot -filter
"(&(objectCategory=Person)(objectClass=User)(Name=Steve*))" -attr
distinguishedName sAMAccountName displayName -limit 0

I have an issue in AD. When a meeting notice is sent to "all staff" (all AD
users) the sender will get an error that two people are not in Exchange any
more.

The two people in question have been gone a long time so it must have been
imported from Exchange 5.5 into 2003 when we migrated a year ago. My guess
is that the two people were once named as "send on behalf" delegates.

Since I really don't know where in AD they would be (could be elsewhere
other than delegates), how can I go about a search to find the names? What
tool would I use. I am really only familiar with ADSIEdit, Users and
Computers, etc. I'm sure there is a way to do an LDAP search, but I have
never used that tool.

Sincerely,

Steve Gould


Jerold Schulman
Windows: General MVP
JSI, Inc.
http://www.jsiinc.com
 
\
dsquery * domainroot -filter
"(&(objectCategory=Person)(objectClass=User)(Name=Steve*))" -attr
distinguishedName sAMAccountName displayName -limit 0

I have an issue in AD. When a meeting notice is sent to "all staff" (all AD
users) the sender will get an error that two people are not in Exchange any
more.

The two people in question have been gone a long time so it must have been
imported from Exchange 5.5 into 2003 when we migrated a year ago. My guess
is that the two people were once named as "send on behalf" delegates.

Since I really don't know where in AD they would be (could be elsewhere
other than delegates), how can I go about a search to find the names? What
tool would I use. I am really only familiar with ADSIEdit, Users and
Computers, etc. I'm sure there is a way to do an LDAP search, but I have
never used that tool.

Sincerely,

Steve Gould


Jerold Schulman
Windows: General MVP
JSI, Inc.
http://www.jsiinc.com
 
My fault. I failed to specify a Windows 2000 domain. Dsquery appears to be a
Windows 2003 tool.
 
Back
Top