Skip to content

Commit

Permalink
Merge pull request #4095 from malauter/Fix-3932
Browse files Browse the repository at this point in the history
EXOTransportRule: Fix export of enabled state
  • Loading branch information
NikCharlebois authored Dec 29, 2023
2 parents 429d721 + e958fcf commit c6b2a14
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
* EXOMailboxCalendarFolder
* Add support for non-English calendar folder names during export
FIXES [#4056](https://github.com/microsoft/Microsoft365DSC/issues/4056)
* EXOTransportRule
* Fix export of enabled state
FIXES [#3932](https://github.com/microsoft/Microsoft365DSC/issues/3932)
* IntuneDeviceConfigurationCustomPolicyWindows10
* Fix issue deploying decrypted OmaSettings to another tenant
FIXES [#4083](https://github.com/microsoft/Microsoft365DSC/issues/4083)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -780,6 +780,16 @@ function Get-TargetResource
{
$MessageContainsDataClassificationsValue = $TransportRule.MessageContainsDataClassifications.Replace('"', "'")
}

if ($TransportRule.State -eq "Enabled")
{
$enabled = $true
}
else
{
$enabled = $false
}

$result = @{
Name = $TransportRule.Name
ADComparisonAttribute = $TransportRule.ADComparisonAttribute
Expand Down Expand Up @@ -820,7 +830,7 @@ function Get-TargetResource
CopyTo = $TransportRule.CopyTo
DeleteMessage = $TransportRule.DeleteMessage
DlpPolicy = $TransportRule.DlpPolicy
Enabled = $TransportRule.Enabled
Enabled = $enabled
ExceptIfADComparisonAttribute = $TransportRule.ExceptIfADComparisonAttribute
ExceptIfADComparisonOperator = $TransportRule.ExceptIfADComparisonOperator
ExceptIfAnyOfCcHeader = $TransportRule.ExceptIfAnyOfCcHeader
Expand Down

0 comments on commit c6b2a14

Please sign in to comment.