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
The Test-TargetResource will always fail if the current state has only defined one WinHttpDefaultSecureProtocols, e.g. 'TLS1.2'. This is because Get-TargetResource does not return a string array for the property WinHttpDefaultSecureProtocols resulting in that Test-TargetResource compares the array @('TLS1.2') against @('T','L','S','1','.','2').
Verbose logs
Not available (debugged but forgot to save the logs)
Problem description
The
Test-TargetResource
will always fail if the current state has only defined oneWinHttpDefaultSecureProtocols
, e.g. 'TLS1.2'. This is because Get-TargetResource does not return a string array for the propertyWinHttpDefaultSecureProtocols
resulting in thatTest-TargetResource
compares the array@('TLS1.2')
against@('T','L','S','1','.','2')
.Verbose logs
DSC configuration
Suggested solution
Convert the value:.
SChannelDsc/source/DSCResources/MSFT_SChannelSettings/MSFT_SChannelSettings.psm1
Line 326 in b029a1f
to an array
Operating system the target node is running
PowerShell version and build the target node is running
SChannelDsc version
The text was updated successfully, but these errors were encountered: