Microsoft365DSC
Microsoft365DSC copied to clipboard
M365DSCUtil.psm1: Closing bracket inserted into the event log message in an XML structure
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.