From 88a0c83f8b37b16f2ed39ed179facf822531155b Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Wed, 19 Nov 2025 22:50:32 -0600 Subject: [PATCH] Update vCenter-SSL.ps1 --- inc/vCenter-SSL.ps1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/inc/vCenter-SSL.ps1 b/inc/vCenter-SSL.ps1 index 44e1f11b..45734342 100644 --- a/inc/vCenter-SSL.ps1 +++ b/inc/vCenter-SSL.ps1 @@ -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)) {