In some instances we had to Convert Dynamic Distribution Group to Normal Distribution Group .
In order to Sync in Office 365, in few other scenarios we had to do this as well
Lets see how to do it.
I would prefer to Create a new Distribution Group with the same filter. where deleting and recreating might create some cache issues and NDR issues
Lets say I have a dynamic Distribution Group with the Name DG1
Its has a filter “CustomAttribute1 –eq CareExchange”
Step 1:
Save the Dynamic Distribution Group to a Variable
$DynamicDG = Get-DynamicDistributionGroup “DG1”
Step2:
Now run the below Command to list the Existing members of the Dynamic DG
Get-Recipient -RecipientPreviewFilter $DynamicDG.RecipientFilter
Now Save the Members in a Variable
$DG1Members = Get-Recipient -RecipientPreviewFilter $DynamicDG.RecipientFilter
Step 3:
Now Create a New Distribution Group
New-DistributionGroup DG1Cloud
Adding the DynamicDistributionGroup members into a New Distribution Group
$DG1Members | foreach{Add-DistributionGroupmember DG1Cloud –Member $_.Name}
Verifying the members of the New Distribution Group
Now you got a Copy of your Dynamic Distribution Group safely Created as a Normal Distribution Group
Depends upon your situation , You can delete the existing one and Rename the Newly Created one.
and Make sure you are not going to get into Outlook Cache issues.
As nobody let a comment for your great job I do!
I am sure it will be usefull to lot of people!
Looks really great! Can dis be used in O 365 environment aswell?
It realy a great work for exchange admins…
I get an error at step two.
[PS] C:\WINDOWS\system32>Get-Recipient -RecipientPreviewFilter $DynamicDG.RecipientFilter
Cannot validate argument on parameter ‘RecipientPreviewFilter’. The argument is null or empty. Supply an argument that
is not null or empty and then try the command again.
+ CategoryInfo : InvalidData: (:) [Get-Recipient], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationError,Get-Recipient
+ PSComputerName : mailserver.gov.dnvr