We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ca0a7e commit a13082cCopy full SHA for a13082c
adapters/powershell/psDscAdapter/psDscAdapter.psm1
@@ -434,10 +434,6 @@ function Invoke-DscOperation {
434
}
435
$dscResourceInstance.$($_.Name) = [System.Management.Automation.PSCredential]::new($_.Value.Username, (ConvertTo-SecureString -AsPlainText $_.Value.Password -Force))
436
437
- elseif ($validateProperty -and $validateProperty.PropertyType -like '*SecureString') {
438
-
439
- $dscResourceInstance.$($_.Name) = ConvertTo-SecureString -AsPlainText $_.Value -Force
440
- }
441
else {
442
$dscResourceInstance.$($_.Name) = $_.Value.psobject.properties | ForEach-Object -Begin { $propertyHash = @{} } -Process { $propertyHash[$_.Name] = $_.Value } -End { $propertyHash }
443
0 commit comments