diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_EXOEOPProtectionPolicyRule/MSFT_EXOEOPProtectionPolicyRule.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_EXOEOPProtectionPolicyRule/MSFT_EXOEOPProtectionPolicyRule.psm1 index 6681eb455d..f5852c72a4 100644 --- a/Modules/Microsoft365DSC/DSCResources/MSFT_EXOEOPProtectionPolicyRule/MSFT_EXOEOPProtectionPolicyRule.psm1 +++ b/Modules/Microsoft365DSC/DSCResources/MSFT_EXOEOPProtectionPolicyRule/MSFT_EXOEOPProtectionPolicyRule.psm1 @@ -266,9 +266,8 @@ function Set-TargetResource } elseif ($Ensure -eq 'Absent' -and $currentInstance.Ensure -eq 'Present') { - #following Microsoft recommendation, we will not remove EOPProtectionPolicyRules, instead we will disable the rule if not already done - Write-Verbose -Message "We will not remove EOPProtectionPolicyRules, we will disable the rule if not already done" - Disable-EOPProtectionPolicyRule -Identity $currentInstance.Identity + #following Microsoft recommendation, we will not remove EOPProtectionPolicyRules. + Write-Verbose -Message "We will not remove EOPProtectionPolicyRules" } } diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_EXOExternalInOutlook/MSFT_EXOExternalInOutlook.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_EXOExternalInOutlook/MSFT_EXOExternalInOutlook.psm1 index 0637347e06..d9ce69b675 100644 --- a/Modules/Microsoft365DSC/DSCResources/MSFT_EXOExternalInOutlook/MSFT_EXOExternalInOutlook.psm1 +++ b/Modules/Microsoft365DSC/DSCResources/MSFT_EXOExternalInOutlook/MSFT_EXOExternalInOutlook.psm1 @@ -157,7 +157,7 @@ function Set-TargetResource if ($Ensure -eq 'Present' -and $currentInstance.Ensure -eq 'Absent') { - Write-Verbose -Message "The setting cannot be cvreated, it can only be enabled or disabled." + Write-Verbose -Message "The setting cannot be created, it can only be enabled or disabled." } elseif ($Ensure -eq 'Present' -and $currentInstance.Ensure -eq 'Present') { @@ -177,11 +177,6 @@ function Set-TargetResource } } - if($null -ne $UpdateParameters.AllowList) - { - $UpdateParameters.AllowList = $UpdateParameters.AllowList -join ',' - } - Set-ExternalInOutlook @UpdateParameters | Out-Null } elseif ($Ensure -eq 'Absent' -and $currentInstance.Ensure -eq 'Present')