dsquery * domainroot -filter "((proxyaddresses=*domain.com))" -scope subtree -attr displayname
* - to Find any object class user,group etc
domainroot - Where to search
-filter - What to search
-scope - At what level base or subtree it has to search
-attr - what attributes needs to be displayed with the filtered results