Update vCenter-SSL.ps1

This commit is contained in:
2025-11-19 22:50:32 -06:00
parent f913e7d4e8
commit 88a0c83f8b

View File

@@ -24,13 +24,14 @@ function Write-Log {
param(
[ValidateSet('INFO','WARN','ERROR')]
[string]$Level,
[string]$Message
[string]$Message,
[string]$ForegroundColor
)
$ts = Get-Date -Format 'yyyy-MM-dd HH:mm:ss'
$line = "[$ts] $Level : $Message"
Write-Host $line
Write-Host $line -ForegroundColor $ForegroundColor
try {
$dir = Split-Path $LogFile
if (-not (Test-Path $dir)) {