Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

hidden recipients

Status
Not open for further replies.

mortkc

MIS
Apr 23, 2001
84
US
Does anyone know of a way to extract a list of all hidden recipients? I have about 300 recipients that are hidden from the address list and I need to create a list that I can review. Any help would be appreciated. Thanks.
 
Here is a quick and dirty way, Run this command from one of your servers.

ldifde -f export.ldf -r &quot;(&(msExchHideFromAddressLists=TRUE)(|(objectClass=user)(objectClass=group)(objectClass=contact)))&quot; -d dc=<yourdomain>,dc=com -l proxyAddresses,mail

Change the -d option to your reflect the DN where you want to start the search, replace the <yourdomain> with your domain name.

This will give you an output of each user, group, and contact object that is hidden. You can remove the attributes you don't want by modifying the -l option.

Good Luck,
Jon
 
Jon, thanks for the tip! When I run the LDIFDE command it comes back with no entries found. I added CN=clients, which is a container that has nothing but hidden recipients. Any thoughts? Thanks again, I am on the right track.
 
mortkc
Try this very generic call to LDIFDE, it will give you a ton more info than you are after, but once you get something you can fine tune it. Replace the <info> in the command with appropriate data:
ldifde -d &quot;cn=users,dc=<yourorganization>,dc=<your type, eg: com or gov>&quot; -r &quot;(objectCategory=*)&quot; -l &quot;objectClass,*&quot; -f ldfideout.txt
-bill
 
Bpierini’s command is an excellent step to ensure you’re command it working, you can also try this less filtered command, which should return all objects with the hide from address book attribute.

ldifde -f export.ldf -r &quot;(msExchHideFromAddressLists=TRUE)&quot; -d dc=domain,dc
=com -l proxyAddresses,mail

Let me know if that works for you any better. Replace the dc=domain with your domain. Also, bpierini’s suggestion points out something that mine does not, if you domain ends with a .gov or .net, etc. use it in place of com.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top