Microsoft365DSC icon indicating copy to clipboard operation
Microsoft365DSC copied to clipboard

M365DSCUtil.psm1: Closing bracket inserted into the event log message in an XML structure

Open HaloX69 opened this issue 6 years ago • 0 comments

1.0.5.128 Line 759

    $EventMessage += "        </ParametersNotInDesiredState>`r`n"
    $EventMessage += "    </ConfigurationDrift>`r`n"
    $EventMessage += "    <DesiredValues>`r`n"
    foreach ($Key in $DesiredValues.Keys)
    {
        $Value = $DesiredValues.$Key
        if ([System.String]::IsNullOrEmpty($Value))
        {
            $Value = "`$null"
        }
        $EventMessage += "        <Param Name =`"$key`">$Value</Param>`r`n"
    }

#--->> $EventMessage += " }" Remove or comment out this line.

HaloX69 avatar May 28 '20 15:05 HaloX69