Skip to content

Commit

Permalink
Update Analyze.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
khusmeno-MS authored Jul 7, 2023
1 parent 8288bae commit 5b72225
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion SCSM-Diagnostic-Tool/SourceCode/_2_Analyzing/Analyze.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -843,7 +843,11 @@ $encodedBytes = [System.Text.Encoding]::UTF8.GetBytes($readableText)
$encodedText = [System.Convert]::ToBase64String($encodedBytes)
AppendOutputToFileInTargetFolder $encodedText Findings.txt

Set-Content -Path (Join-Path -Path (Split-Path $resultFolder -Parent) -ChildPath $findingsPS1_FileName ) -Value (GetShowTheFindingsPS1Content)
$ShowTheFindingsPS1Content = GetShowTheFindingsPS1Content
$ShowTheFindingsPS1Content = $ShowTheFindingsPS1Content.Replace("# SMDTSIGN begins here #", "# SIG # Begin signature block")
$ShowTheFindingsPS1Content = $ShowTheFindingsPS1Content.Replace("# SMDTSIGN ends here #", "# SIG # End signature block")

Set-Content -Path (Join-Path -Path (Split-Path $resultFolder -Parent) -ChildPath $findingsPS1_FileName ) -Value $ShowTheFindingsPS1Content
DeleteFileInTargetFolder $findingsHtml_FileName

#WriteTelemetry
Expand Down

0 comments on commit 5b72225

Please sign in to comment.