HOW TO: Hide Distribution Group membership
Posted by Bharat Suneja at 8:27 AM

As the task suggests, it hides the group's membership in Outlook Address Book/GAL. It also prevents users from clicking the + link that appears before a Distribution Group when composing a new message, and expanding the group so messages are sent individually to all members rather than the DG.

The Hide Membership task available from Exchange Tasks denies Read Property permission for the Members attribute, to the Everyone group. This also prevents Administrators trying to manage the group from seeing the group's members.
Nevertheless, you can prevent users from expanding the group in Microsoft Outlook. It's not a way to hide membership completely, as noted later in the post.
Use the following command to assign Deny permission for the Members property of the DG to a particular user or Security Group (remember the security best practice - add users to Security Group -> assign permissions to Security Group?):
Add-ADPermission "Distribution Group Name" -user "User or Security Group Name" -Deny -AccessRights ReadProperty -Properties Member
Note, you can use the Everyone group in the above command to simulate what Exchange Server 2003's Hide Membership task does. This hides membership from the EMC as well, but the shell can still show membership using the Get-DistributionListMember command.Once the permission is added, clicking on the + link in Microsoft Outlook produces the following error message (not very descriptive), and user cannot expand the Distribution Group.

Click here to see a larger image
Additionally, membership of the group is not revealed in the group's properties in Microsoft Outlook.
For the console/GUI fans amongst us or those who simply haven't developed an intimate relationship with the shell (hopefully the following will make you a convert... :), ADSIEdit is your friend. Fire it up:
1. Navigate to the Distribution Group's properties2. Select the Security tab
3. Click Add
4. Select the user or group you want to deny permission to (you can use the Everyone group to simulate what Exchange Server 2003 does)
5. Click OK
6. click Advanced (wait... ) to open Advanced Security Settings
7. Select the Permissions tab
8. Select the user or group if not already selected
9. Click Edit to open the Permissions Entry properties for the selected user/group
10. Select Properties tab
11. Click on the "Deny" checkbox for the Read Members property so it is checked.
12. Click OK to close the Permissions pages.
13. Click OK to close the Advanced Security Settings pages
14. Click OK to close the Properties dialog box
To determine any modifications to the AD permissions for the Members property:
Get-ADPermission "Distribution Group Name" | where {$_.Properties -like "member"} | fl
To remove the Deny permission on the Member property for a Distribution Group, use the Remove-ADPermission command:Remove-ADPermission "Distribution Group Name" -user "User/Security Group Name" -Deny -AccessRights ReadProperty -Properties Member
Caveats to the above approach:1. Users can still send a message to the Distribution Group with a Delivery Report requested. This reveals the membership of the Distribution Group. Let's go ahead and fix that.
To prevent a Delivery Report from being sent to the originator (consider this carefully, you may want senders to receive delivery reports if messages are not delivered to members of certain Distribution Groups. You can also enable delivery reports to the group Manager only.), use the following command:
Set-DistributionGroup "Distribution Group Name" -ReportToOriginatorEnabled $false
Once this is done, Exchange simply sends a Distributtion Group expanded message in the Delivery Report, if one is requested, without revealing the group's members.
2. Membership of the Distribution Group can be viewed in Outlook Web Access (OWA 2007).
Yes, this means this workaround can't really be used to hide group membership completely. You can still use this to prevent Outlook users from expanding the group when composing messages, and hiding membership from Outlook users.
Labels: Administration, Exchange Server 2007, Exchange Shell, GAL/Address Lists

Exchangepedia Blog is read by visitors from all 50 US States and 150 countries world-wide



Unlike LDAP filters, the actual attribute name -
Like LDAP filters, you need to specify the 







