Link to home
Start Free TrialLog in
Avatar of kevlause
kevlause

asked on

Wild Card for AD find

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...
ASKER CERTIFIED SOLUTION
Avatar of dis1931
dis1931

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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


Avatar of dis1931
dis1931

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
Avatar of kevlause

ASKER

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