You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Details of the scenario you tried and the problem that is occurring
The ADReplicationSiteLink resource fails to set OptionChangeNotification, OptionTwoWaySync or OptionDisableCompression if they are set after the resource is initially created.
Verbose logs showing the problem
Invoke-DscResource -Name ADReplicationSitelink -Method Set -ModuleName ActiveDirectoryDsc `
-Property @{
Name = 'testlink1'
sitesincluded = @('testsite1','testsite2')
} -Verbose
VERBOSE: Perform operation 'Invoke CimMethod' with following parameters, ''methodName' = ResourceSet,'className' = MSFT_DSCLocalConfigurationManager,'namespaceName' =
root/Microsoft/Windows/DesiredStateConfiguration'.
VERBOSE: An LCM method call arrived from computer DC01-2019 with user sid S-1-5-21-3553084080-2500667019-4197401787-500.
VERBOSE: [DC01-2019]: LCM: [ Start Set ] [[ADReplicationSiteLink]DirectResourceAccess]
VERBOSE: [DC01-2019]: [[ADReplicationSiteLink]DirectResourceAccess] Could not find 'testlink1' site link. (ADRSL0009)
VERBOSE: [DC01-2019]: [[ADReplicationSiteLink]DirectResourceAccess] Creating AD Site Link 'testlink1'. (ADRSL0007)
VERBOSE: [DC01-2019]: LCM: [ End Set ] [[ADReplicationSiteLink]DirectResourceAccess] in 0.5630 seconds.
VERBOSE: [DC01-2019]: LCM: [ End Set ] in 1.0160 seconds.
VERBOSE: Operation 'Invoke CimMethod' complete.
RebootRequired
--------------
False
VERBOSE: Time taken for configuration job to complete is 1.262 seconds
VERBOSE: Perform operation 'Invoke CimMethod' with following parameters, ''methodName' = ResourceSet,'className' = MSFT_DSCLocalConfigurationManager,'namespaceName' =
root/Microsoft/Windows/DesiredStateConfiguration'.
VERBOSE: An LCM method call arrived from computer DC01-2019 with user sid S-1-5-21-3553084080-2500667019-4197401787-500.
VERBOSE: [DC01-2019]: LCM: [ Start Set ] [[ADReplicationSiteLink]DirectResourceAccess]
VERBOSE: [DC01-2019]: [[ADReplicationSiteLink]DirectResourceAccess] Setting property 'OptionChangeNotification' to 'True' on site link 'testlink1'. (ADRSL0004)
VERBOSE: [DC01-2019]: [[ADReplicationSiteLink]DirectResourceAccess] Setting property 'TwoWaySync' to 'True' on site link 'testlink1'. (ADRSL0004)
VERBOSE: [DC01-2019]: [[ADReplicationSiteLink]DirectResourceAccess] Setting property 'OptionDisableCompression' to 'True' on site link 'testlink1'. (ADRSL0004)
VERBOSE: [DC01-2019]: LCM: [ End Set ] [[ADReplicationSiteLink]DirectResourceAccess] in 0.2040 seconds.
VERBOSE: [DC01-2019]: LCM: [ End Set ] in 0.2500 seconds.
VERBOSE: Operation 'Invoke CimMethod' complete.
RebootRequired
--------------
False
VERBOSE: Time taken for configuration job to complete is 0.402 seconds
VERBOSE: Perform operation 'Invoke CimMethod' with following parameters, ''methodName' = ResourceTest,'className' = MSFT_DSCLocalConfigurationManager,'namespaceName' =
root/Microsoft/Windows/DesiredStateConfiguration'.
VERBOSE: An LCM method call arrived from computer DC01-2019 with user sid S-1-5-21-3553084080-2500667019-4197401787-500.
VERBOSE: [DC01-2019]: LCM: [ Start Test ] [[ADReplicationSiteLink]DirectResourceAccess]
VERBOSE: [DC01-2019]: [[ADReplicationSiteLink]DirectResourceAccess] 'OptionChangeNotification' is not in desired state Current: 'False' Desired: 'True'. (ADRSL0003)
VERBOSE: [DC01-2019]: [[ADReplicationSiteLink]DirectResourceAccess] 'OptionTwoWaySync' is not in desired state Current: 'False' Desired: 'True'. (ADRSL0003)
VERBOSE: [DC01-2019]: [[ADReplicationSiteLink]DirectResourceAccess] 'OptionDisableCompression' is not in desired state Current: 'False' Desired: 'True'. (ADRSL0003)
VERBOSE: [DC01-2019]: LCM: [ End Test ] [[ADReplicationSiteLink]DirectResourceAccess] False in 0.0630 seconds.
VERBOSE: [DC01-2019]: LCM: [ End Set ] in 0.1100 seconds.
VERBOSE: Operation 'Invoke CimMethod' complete.
InDesiredState
--------------
False
VERBOSE: Time taken for configuration job to complete is 0.254 seconds
Suggested solution to the issue
Adjust Set-TargetResource logic to correctly set options on a pre-existing resource.
The operating system the target node is running
OsName : Microsoft Windows Server 2019 Datacenter
OsOperatingSystemSKU : DatacenterServerEdition
OsArchitecture : 64-bit
WindowsVersion : 1809
WindowsBuildLabEx : 17763.1.amd64fre.rs5_release.180914-1434
OsLanguage : en-US
OsMuiLanguages : {en-US}
Version and build of PowerShell the target node is running
Details of the scenario you tried and the problem that is occurring
The
ADReplicationSiteLink
resource fails to setOptionChangeNotification
,OptionTwoWaySync
orOptionDisableCompression
if they are set after the resource is initially created.Verbose logs showing the problem
Suggested solution to the issue
Adjust
Set-TargetResource
logic to correctly set options on a pre-existing resource.The operating system the target node is running
Version and build of PowerShell the target node is running
Version of the DSC module that was used
The text was updated successfully, but these errors were encountered: