Update vCenter-SSL.ps1

This commit is contained in:
2025-11-19 22:54:05 -06:00
parent 88a0c83f8b
commit 7d89c10954

View File

@@ -31,7 +31,11 @@ function Write-Log {
$ts = Get-Date -Format 'yyyy-MM-dd HH:mm:ss'
$line = "[$ts] $Level : $Message"
Write-Host $line -ForegroundColor $ForegroundColor
if ($ForegroundColor) {
Write-Host $line -ForegroundColor $ForegroundColor
} else {
Write-Host $line
}
try {
$dir = Split-Path $LogFile
if (-not (Test-Path $dir)) {