Solved

Wild Card for AD find

Posted on 2007-11-30
4
738 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
  • 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Learn about cloud computing and its benefits for small business owners.
This script can help you clean up your user profile database by comparing profiles to Active Directory users in a particular OU, and removing the profiles that don't match.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
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.

772 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