A. The mail attribute of non-mail-enabled groups typically won’t be populated with a value and will have an object category of “group.” Using Dsquery with an LDAP route path, you can find all non-mail-enabled groups, as follows:

dsquery * dc=savilltech,dc=net -filter "(&(objectcategory=group)(!(mail=*)))" -limit 500

Here is the sample output:

"CN=Remote Desktop Users,CN=Builtin,DC=savilltech,DC=net"
"CN=Network Configuration Operators,CN=Builtin,DC=savilltech,DC=net"
"CN=Performance Monitor Users,CN=Builtin,DC=savilltech,DC=net"
"CN=Performance Log Users,CN=Builtin,DC=savilltech,DC=net"
"CN=Distributed COM Users,CN=Builtin,DC=savilltech,DC=net"
"CN=Domain Computers,CN=Users,DC=savilltech,DC=net"
"CN=Cert Publishers,CN=Users,DC=savilltech,DC=net"
"CN=Domain Users,CN=Users,DC=savilltech,DC=net"
"CN=Domain Guests,CN=Users,DC=savilltech,DC=net"
"CN=RAS and IAS Servers,CN=Users,DC=savilltech,DC=net"
"CN=Incoming Forest Trust Builders,CN=Builtin,DC=savilltech,DC=net"
"CN=Terminal Server License Servers,CN=Builtin,DC=savilltech,DC=net"
"CN=Users,CN=Builtin,DC=savilltech,DC=net"
"CN=Group Policy Creator Owners,CN=Users,DC=savilltech,DC=net"
"CN=Pre-Windows 2000 Compatible Access,CN=Builtin,DC=savilltech,DC=net"
"CN=Windows Authorization Access Group,CN=Builtin,DC=savilltech,DC=net"
"CN=Print Operators,CN=Builtin,DC=savilltech,DC=net"
"CN=Administrators,CN=Builtin,DC=savilltech,DC=net"
"CN=Enterprise Admins,CN=Users,DC=savilltech,DC=net"
"CN=Domain Admins,CN=Users,DC=savilltech,DC=net"
"CN=Server Operators,CN=Builtin,DC=savilltech,DC=net"
"CN=Account Operators,CN=Builtin,DC=savilltech,DC=net"
"CN=Backup Operators,CN=Builtin,DC=savilltech,DC=net"
"CN=Replicator,CN=Builtin,DC=savilltech,DC=net"
"CN=Domain Controllers,CN=Users,DC=savilltech,DC=net"
"CN=Schema Admins,CN=Users,DC=savilltech,DC=net"
"CN=Guests,CN=Builtin,DC=savilltech,DC=net"
"CN=DHCP Users,CN=Users,DC=savilltech,DC=net"
"CN=DHCP Administrators,CN=Users,DC=savilltech,DC=net"
"CN=WINS Users,CN=Users,DC=savilltech,DC=net"
"CN=Terminal Server Computers,CN=Users,DC=savilltech,DC=net"
"CN=DnsAdmins,CN=Users,DC=savilltech,DC=net"
"CN=DnsUpdateProxy,CN=Users,DC=savilltech,DC=net"
"CN=TelnetClients,CN=Users,DC=savilltech,DC=net"
"CN=MOM Admins,CN=Users,DC=savilltech,DC=net"
"CN=IIS_WPG,CN=Users,DC=savilltech,DC=net"
"CN=SCE Managed Computers (SAVDALSC01_MG),CN=Users,DC=savilltech,DC=net"