From 42850134f2253ac8bab7ec67b7abb491ebdaff65 Mon Sep 17 00:00:00 2001 From: Mikhail Timofeev Date: Tue, 14 Jul 2020 10:25:38 +0300 Subject: [PATCH] replace condition with function Test-IsWin19 --- images/win/scripts/SoftwareReport/SoftwareReport.Generator.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/images/win/scripts/SoftwareReport/SoftwareReport.Generator.ps1 b/images/win/scripts/SoftwareReport/SoftwareReport.Generator.ps1 index 7ede1a174..f922dcc4d 100644 --- a/images/win/scripts/SoftwareReport/SoftwareReport.Generator.ps1 +++ b/images/win/scripts/SoftwareReport/SoftwareReport.Generator.ps1 @@ -22,7 +22,7 @@ $markdown += New-MDList -Style Unordered -Lines @( "Image Version: $env:ImageVersion" ) -if ($OSName -match "Microsoft Windows Server 2019 Datacenter") +if (Test-IsWin19) { $markdown += New-MDHeader "Enabled windows optional features" -Level 2 $markdown += New-MDList -Style Unordered -Lines @(