From 813f32cab74e5f96d262e07c66a16fdb7f965d08 Mon Sep 17 00:00:00 2001 From: Stephan Yelle Date: Mon, 26 May 2025 22:52:12 -0400 Subject: [PATCH] added the Module Ver. under logo --- testTaskGate.ps1 | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/testTaskGate.ps1 b/testTaskGate.ps1 index a5b1674..8cbd324 100644 --- a/testTaskGate.ps1 +++ b/testTaskGate.ps1 @@ -296,7 +296,14 @@ $subHtml } - +### Get SVSMSP module version to display in the UI +function Get-ModuleVersionHtml { + $mod = Get-Module -ListAvailable -Name SVSMSP_Module | Sort-Object Version -Descending | Select-Object -First 1 + if ($mod) { + return "
Module Version: $($mod.Version)
" + } + return "
SVSMSP_Module not found
" +} function Get-UIHtml { @@ -660,6 +667,7 @@ $htmlTemplate = @"
SVS Logo + {{moduleVersion}}