SOLVED

Convert dynamic distribution group to static one (Exchange Online)

Highlighted
Contributor

Good morning

I am trying to find out if there is a PS command to convert an existing dynamic distribution group to a static one.

Even if the resulting static group has no members, that's fine. I really want to keep the object intact to avoid all kinds of caching issues in the Outlook desktop app because people are so used to using those groups.

Back story: we have dynamic groups based on the Company attribute but now there's certain c-level staff that works for more than 1 company so I want to convert the existing dynamic group to a static one, create a new dynamic one (hidden) and add that one to the static group along with whichever c-level staff also needs to be in it.

 

If it's not possible, what are best practices/tips to get around the caching issues? :)

Thanks

4 Replies
Highlighted
Best Response confirmed by Steve Hernou (Contributor)
Solution

There's no "convert" path, you'll have to recreate the group.

Highlighted
i had to do this for a customer and using below I converted few DDGs to DGs

$ddgid = Get-DynamicDistributionGroup $name
$members = Get-Recipient -RecipientPreviewFilter $ddgid.RecipientFilter | select samaccountname
foreach ($member in $members)
{
$memberid=$member.SamAccountname
Add-DistributionGroupMember "All California DG" -member $memberid
}
Highlighted

Hi @DeepakRandhawa , thanks for your input but I don't think you are converting the dynamic group, instead you're creating (or have created before) a group called All California DG and you're making sure the members of the DDG are pushed into the DG.

 

My goal is (or better was) to keep the original DDG object and convert to a DG so Exchange would still see it as the same object but that does not seem possible.

 

@Vasil Michev , thanks for confirming :) I'll make sure to inform our servicedesk they can expect calls from people still trying to send to the group using their locally cached type-ahead object ;)

Highlighted
yes, it's not converting but creating a new DG to look like old one