Forum Discussion
Steve Hernou
Jul 29, 2020Iron Contributor
Convert dynamic distribution group to static one (Exchange Online)
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 re...
- Jul 30, 2020
There's no "convert" path, you'll have to recreate the group.
DeepakRandhawa
Jul 30, 2020Iron Contributor
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
}
$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
}
Steve Hernou
Jul 30, 2020Iron Contributor
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.
VasilMichev , 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 😉
- DeepakRandhawaJul 30, 2020Iron Contributoryes, it's not converting but creating a new DG to look like old one