Update Hyper-V-Report.ps1

This commit is contained in:
Federico Lillacci
2025-10-17 13:47:09 +02:00
committed by GitHub
parent 287aaee2df
commit 6a0c566238

View File

@@ -40,15 +40,15 @@ $ScriptPath = (Split-Path ((Get-Variable MyInvocation).Value).MyCommand.Path)
$today = Get-Date
$launchTime = $today.ToString('ddMMyyyy-hhmm')
#Setting the report filename
$reportHtmlFile = $reportHtmlDir+"\$($reportHtmlName)_"+$launchTime+".html"
#Importing required assets
. ("$($ScriptPath)\GlobalVariables.ps1")
. ("$($ScriptPath)\StyleCSS.ps1")
. ("$($ScriptPath)\HtmlCode.ps1")
. ("$($ScriptPath)\Functions.ps1")
#Setting the report filename
$reportHtmlFile = $reportHtmlDir+"\$($reportHtmlName)_"+$launchTime+".html"
#Region Hosts
#Getting Host infos
if ($clusterDeployment)
@@ -375,4 +375,5 @@ if ($emailReport -and $reportHtmlRequired)
Default {Write-Host -ForegroundColor Yellow "You must select an email system, msgraph or mailkit"}
}
}
}