Skip to content

Commit

Permalink
Update MSFT_SecurityOption.psm1
Browse files Browse the repository at this point in the history
Fixes SecurityPolicyDsc: Invoke-DscResource "Get" output is "System.Object[]"
dsccommunity#174
  • Loading branch information
hoppi1804 authored Dec 7, 2021
1 parent 44acc25 commit b948b99
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function Get-TargetResource
}
elseif ($securityOption -eq 'Network_access_Restrict_clients_allowed_to_make_remote_calls_to_SAM')
{
[array]$resultValue = ConvertTo-CimRestrictedRemoteSam -InputObject $currentValue
$resultValue = [array](ConvertTo-CimRestrictedRemoteSam -InputObject $currentValue)
}
else
{
Expand Down

0 comments on commit b948b99

Please sign in to comment.