diff --git a/CHANGELOG.md b/CHANGELOG.md index 4b3a79deed..89e90e73cc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Change log for Microsoft365DSC +# UNRELEASED + +* EXODistributionGroup + * Fixes the export of group membership to use Identity. + # 1.23.1004.1 * AADEntitlementManagementAccessPackageAssignmentPolicy diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_EXODistributionGroup/MSFT_EXODistributionGroup.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_EXODistributionGroup/MSFT_EXODistributionGroup.psm1 index f2e63cf85c..a47761f8b7 100644 --- a/Modules/Microsoft365DSC/DSCResources/MSFT_EXODistributionGroup/MSFT_EXODistributionGroup.psm1 +++ b/Modules/Microsoft365DSC/DSCResources/MSFT_EXODistributionGroup/MSFT_EXODistributionGroup.psm1 @@ -248,7 +248,7 @@ function Get-TargetResource if ($null -ne $Script:exportedInstances -and $Script:ExportMode) { $distributionGroup = $Script:exportedInstances | Where-Object -FilterScript {$_.Identity -eq $Identity} - $distributionGroupMembers = Get-DistributionGroupMember $Name -ErrorAction Stop -ResultSize Unlimited + $distributionGroupMembers = Get-DistributionGroupMember -Identity $Identity -ErrorAction Stop -ResultSize Unlimited } else {