Active Directory users and computers
Right-click on the domain and click Find
Find > Custom search > Advanced tab.
Paste in the following Lightweight Directory Access Protocol (LDAP) query and click Find Now:
(&(objectClass=user)(objectCategory=person)(mailNickname=*)(|(homeMDB=*)(msExchHomeServerName=*))(!(name=SystemMailbox{*))(!(name=CAS_{*))(msExchUserAccountControl=0)(!userAccountControl:1.2.840.113556.1.4.803:=2))
Source: ESET