I'm trying to create a 365 Dynamic Distribution Group based on members from a security group. I've tried the following with no results:
set-DynamicDistributionGroup -Identity 'Test Dist Group' -RecipientFilter {((RecipientType -eq 'UserMailbox') -and (MemberOfGroup -eq "CN=TestGroup,OU=Test,OU=CampusA,DC=A,DC=B,DC=C"))}
I can do a get-adgroupmember "TestGroup" and it pulls back the members
Powershell runs with no errors, however no members are added to the Distribution Group