Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Wild Card for AD find

Posted on 2007-11-30
4
Medium Priority
?
755 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 1000 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:Farhan Kazi
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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Auditing domain password hashes is a commonly overlooked but critical requirement to ensuring secure passwords practices are followed. Methods exist to extract hashes directly for a live domain however this article describes a process to extract u…
In the absence of a fully-fledged GPO Management product like AGPM, the script in this article will provide you with a simple way to watch the domain (or a select OU) for GPOs changes and automatically take backups when policies are added, removed o…
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…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

885 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