Skip to content

Commit be4cbd3

Browse files
authored
fixed when Analyzer folder and Findings.htm was not created. And added SM 2025 version support. (#145)
* Update Collect.ps1 * Update Analyze.ps1
1 parent 5dfede2 commit be4cbd3

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

SCSM-Diagnostic-Tool/SourceCode/_1_Collecting/Collect.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ CopyFileToTargetFolder $scriptFilePath
2222
#region copy smdt.ps1 to windows Temp folder, if newer
2323
$smdtPS1SavedToWindirTemp = $false
2424
$windirTempFolder = [IO.Path]::Combine($env:windir, "Temp", "SCSM.Support.Tools")
25-
New-Item -Path $windirTempFolder -ItemType Directory -ErrorAction SilentlyContinue
25+
New-Item -Path $windirTempFolder -ItemType Directory -ErrorAction SilentlyContinue | Out-Null
2626
$smdtPs1TargetFileName = "SCSM-Diagnostic-Tool.ps1"
2727
$smdtPs1TargetFullPath = [IO.Path]::Combine($windirTempFolder, $smdtPs1TargetFileName)
2828
$smdtVersionInTarget = New-Object Version

SCSM-Diagnostic-Tool/SourceCode/_2_Analyzing/Analyze.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ $smEnv_SQLSM = $smEnv.AppendChild( (CreateElementForStatInfo SQLSM) )
202202
#region Get SM version
203203
#region Populate some known SM versions
204204
$SCSM_Versions = @{}
205+
$SCSM_Versions.Add("10.25.1523.0","2025 RTM")
205206
$SCSM_Versions.Add("10.22.1313.0","2022 UR2")
206207
$SCSM_Versions.Add("10.22.1219.0","2022 RTM + Hotfix")
207208
$SCSM_Versions.Add("10.22.1068.0","2022 RTM")

0 commit comments

Comments
 (0)