Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way to search active directory (using DSQUERY or DSGET) to find a user by thier display name?

share|improve this question
dsquery user -name "Display Name"

Will work.

It's not entirely clear (to me anyway) from the question what you are trying to achieve, but that will return a users DN.

I'm not sure what you really mean by "find a user".

share|improve this answer

dsquery user -name %1* | dsget user -display -fn -ln -upn

%1* reemplace for user name, for example

dsquery user -name victor* | dsget user -display -fn -ln -upn

           It show all names contain victor

Regards. Victor.-

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.