Solved

Wild Card for AD find

Posted on 2007-11-30
4
743 Views
Last Modified: 2012-06-27
I need to do a find in Active Directory for any user with an e-mail address on thier profile page that is in the X_XXXX@domina.com address. What is the wild cared character in the find funcuntion in AD? I tried * and % but they dont' return anything...
0
Comment
Question by:kevlause
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 10

Accepted Solution

by:
dis1931 earned 250 total points
ID: 20382850
* works for me....I went to Find...then went to Advanced Under fields I chose User --> Email-Address....then I left starts with and for the value...i used *@domina.com and it worked fine....of course i used a different domain name which I am on ...but it returned the correct results.
0
 
LVL 26

Expert Comment

by:farhankazi
ID: 20382860
Try this:

Click Start -> Run -> Cmd.exe -> OK
DSQuery * -Filter "(mail=*@domain.com)" -Attr mail -L -Limit 0

** To save results in file:
DSQuery * -Filter "(mail=*@domain.com)" -Attr mail -L -Limit 0 >emails.txt

Hope this helps!
Farhan


0
 
LVL 10

Expert Comment

by:dis1931
ID: 20382861
kevlause,

Up at the top of your find are you sure that you are in the correct folder in AD....do you have Entire Directory selected?

dis1931
0
 

Author Closing Comment

by:kevlause
ID: 31411927
When it says starts with if you don't fill in the entir strings it craps out. *_*@domain.com worked...
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In-place Upgrading Dirsync to Azure AD Connect
This article shows the method of using the Resultant Set of Policy Tool to locate Group Policy that applies a particular setting.
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question