diff --git a/CHANGELOG.md b/CHANGELOG.md index 142527eb6..ccb8f2e16 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,6 +28,12 @@ For older change log history see the [historic changelog](HISTORIC_CHANGELOG.md) - ADOrganizationalUnit - Added DomainController Parameter. +### Fixed + +- ADReplicationSiteLink + - Allow OptionChangeNotification, OptionTwoWaySync and OptionDisableCompression to be updated even if + ReplicationFrequencyInMinutes is not set ([issue #637](https://github.com/dsccommunity/ActiveDirectoryDsc/issues/637)). + ## [6.2.0] - 2022-05-01 ### Changed diff --git a/source/DSCResources/MSFT_ADReplicationSiteLink/MSFT_ADReplicationSiteLink.psm1 b/source/DSCResources/MSFT_ADReplicationSiteLink/MSFT_ADReplicationSiteLink.psm1 index d04601b76..5ce608e54 100644 --- a/source/DSCResources/MSFT_ADReplicationSiteLink/MSFT_ADReplicationSiteLink.psm1 +++ b/source/DSCResources/MSFT_ADReplicationSiteLink/MSFT_ADReplicationSiteLink.psm1 @@ -287,7 +287,7 @@ function Set-TargetResource $setADReplicationSiteLinkParameters['ReplicationFrequencyInMinutes'] = $ReplicationFrequencyInMinutes } - if ($PSBoundParameters.ContainsKey('ReplicationFrequencyInMinutes') -and + if ($PSBoundParameters.ContainsKey('OptionChangeNotification') -and $OptionChangeNotification -ne $currentADSiteLink.OptionChangeNotification) { Write-Verbose -Message ($script:localizedData.SettingProperty -f @@ -299,7 +299,7 @@ function Set-TargetResource $desiredChangeNotification = $currentADSiteLink.OptionChangeNotification } - if ($PSBoundParameters.ContainsKey('ReplicationFrequencyInMinutes') -and + if ($PSBoundParameters.ContainsKey('OptionTwoWaySync') -and $OptionTwoWaySync -ne $currentADSiteLink.OptionTwoWaySync) { Write-Verbose -Message ($script:localizedData.SettingProperty -f @@ -311,7 +311,7 @@ function Set-TargetResource $desiredTwoWaySync = $currentADSiteLink.OptionTwoWaySync } - if ($PSBoundParameters.ContainsKey('ReplicationFrequencyInMinutes') -and + if ($PSBoundParameters.ContainsKey('OptionDisableCompression') -and $OptionDisableCompression -ne $currentADSiteLink.OptionDisableCompression) { Write-Verbose -Message ($script:localizedData.SettingProperty -f