Tuesday, June 14, 2011

Dsquery to find a email address in AD

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

No comments: