File tree Expand file tree Collapse file tree
SCSM-Diagnostic-Tool/SourceCode/_2_Analyzing Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -935,12 +935,15 @@ $ShowTheFindingsPS1Content = $ShowTheFindingsPS1Content.Replace("# SMDTSIGN ends
935935Set-Content - Path (Join-Path - Path (Split-Path $resultFolder - Parent) - ChildPath $findingsPS1_FileName ) - Value $ShowTheFindingsPS1Content
936936DeleteFileInTargetFolder $findingsHtml_FileName
937937
938- # WriteTelemetry
939- AppendOutputToFileInTargetFolder (GetStatInfo).OuterXml StatInfo.xml
940938$sentByForStatInfo = " Run"
941939if ( $Script :MyInvocation.UnboundArguments.Contains (" -startedByRule" ) ) {
942940 $sentByForStatInfo = " Rule"
943941}
942+ (GetStatInfoRoot).SetAttribute(" SmdtRunType" , $sentByForStatInfo )
943+
944+ # WriteTelemetry
945+ AppendOutputToFileInTargetFolder (GetStatInfo).OuterXml StatInfo.xml
946+
944947LogStatInfo (GetStatInfo) $sentByForStatInfo
945948
946949# $ProgressPreference = 'Continue'
You can’t perform that action at this time.
0 commit comments