Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
sandrola committed Jun 28, 2024
1 parent 4aaf921 commit 9ceb081
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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')
{
Expand All @@ -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')
Expand Down

0 comments on commit 9ceb081

Please sign in to comment.