View Members of a Dynamic Distribution Group in Exchange 2013

In Exchange 2010 there used to be a handy preview button which you could press to see who is a member of a dynamic distribution group:



In Exchange 2013 I can’t find a similar feature. On the TechNet site it says you can use EAC, but this didn’t seem to work for me. Let me know if you got this to work:

So it appears the only option is a spot of PowerShell! 🙂

  1. First we need to create a Variable which will store the results of the Get-DynamicDistributionGroup command:
$TDG = Get-DynamicDistributionGroup "Test Dynamic Group"

2. Now we can use the variable together with the Get-Recipient command to return the required results:

Get-Recipient -RecipientPreviewFilter $TDG.RecipientFilter


If you specify a RecipientContainer in the Dynamic Distribution Group configuration to pick recipients from a specified OU or container in Active Directory, using the above method to return recipients will not be accurate because it returns recipients from the entire domain.

To solve this you can run:

Get-Recipient -RecipientPreviewFilter $TDG.RecipientFilter -OrganizationalUnit $TGG.RecipientContainer

Give a Security Group access to a mailbox in Exchange 2013

Having recently deployed Exchange 2013, we discovered that you can no longer give a security group access to a mailbox using the Gui (Exchange Admin Center). As you can see this Test group is not available for selection in the Exchange Admin Center:



You can select a mail-enabled security group, but a standard security group requires powershell.

1. Open Exchange Management Shell on your Exchange Server or workstation

2. Run the following command:

Add-MailboxPermission -Identity “sharedmailboxname” -User “domain\group” -AccessRights Fullaccess -InheritanceType all

You can run the following to command to verify the permissions are set:

Get-MailboxPermission -Identity “MailboxID”





Cannot Install Exchange 2013 on Windows 2012

This weekend I decided to install Exchange 2013 in the lab. A number of things I am working on in the Lab require email capabilities and I wanted to see what the new version has to offer.

I installed a new VM with Windows Server 2012, joined it to the domain, ran the installer then I came across this error:

The Active Directory schema isn’t up-to-date, and this user account isn’t a member of the ‘Schema Admins’ and/or ‘Enterprise Admins’ groups.
For more information, visit:

install error

Now this error didn’t make a lot of sense to me as I knew I was a member of the ‘Schema Admins’ & Enterprise Admins’ Groups, but the installer kept repeating the same error. I tried to install under the default Enterprise Admin account and running setup.exe /preparead, but nothing worked. This was the first Exchange server in a new domain so I assumed it didn’t like the fact the domain wasn’t prepared.

For a work around I installed just the management tools first. This ran the setup.exe /preparead properly.

setup completed

Next I went to AD and added my user to the ‘Organisation Management’ group.

Make sure you check Advanced Features to view the Exchange groups
Make sure you check Advanced Features to view the Exchange groups

Now I went back to my server and ran the installer again selecting  both ‘Client Access’ & ‘Mailbox’ roles. I no longer got the ‘Schema Admins’ error.


Finally I need to download the UCMA runtime and the Office 2010 Filter packs.
After installation the prerequisites were satisfied and I could finally install Exchange!
setup completed

I don’t know about you, but that seemed a pain for such a simple task? I thought installing Exchange was supposed to be getting easier?