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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
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
ASKER
When it says starts with if you don't fill in the entir strings it craps out. *_*@domain.com worked...
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