Avatar of Brad Fulmer
Brad Fulmer

asked on 

Creating a Dynamic Distribution Group in Office 365 based on AD Security Group

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
PowershellMicrosoft OfficeMicrosoft 365Security

Avatar of undefined
Last Comment

8/22/2022 - Mon