title: LDAP Query for both mail-enabled security groups and distribution mail groups
body: <p>We have some security groups that are mail enabled. Because of that , I need a query within ADUC that will give me a list of all my mail-enabled security groups and distribution mail groups.</p>
  
  <p>I am able to getting distribution mail groups LDAP query like below.</p>
  
  <pre><code>(&amp;(&amp;(&amp;(objectClass=group)(!(groupType:1.2.840.113556.1.4.803:=2147483648)))))
  </code></pre>