troubleshooting Question

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

Avatar of Brad Fulmer
Brad Fulmer asked on
PowershellMicrosoft OfficeMicrosoft 365Security
2 Comments1 Solution552 ViewsLast Modified:
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
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros