Skip to content

Commit 57cab3b

Browse files
Merge pull request KelvinTegelaar#1839 from chris-dewey-1991/StandardOutBoundSpamAlert
Fix drift comparison issue for NotifyOutboundSpamRecipients in StandardOutBoundSpamAlert
2 parents 4633840 + 68e8562 commit 57cab3b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardOutBoundSpamAlert.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ function Invoke-CIPPStandardOutBoundSpamAlert {
7676
Add-CIPPBPAField -FieldName 'OutboundSpamAlert' -FieldValue $CurrentInfo.NotifyOutboundSpam -StoreAs bool -Tenant $tenant
7777
$CurrentValue = @{
7878
NotifyOutboundSpam = $CurrentInfo.NotifyOutboundSpam
79-
NotifyOutboundSpamRecipients = $CurrentInfo.NotifyOutboundSpamRecipients
79+
NotifyOutboundSpamRecipients = ($CurrentInfo.NotifyOutboundSpamRecipients -join ', ')
8080
}
8181
$ExpectedValue = @{
8282
NotifyOutboundSpam = $true

0 commit comments

Comments
 (0)