From e37e13780e2ca5b8882162a0a5c8d5a72e2e9e23 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Wed, 19 Nov 2025 22:23:33 -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 1ebed209..03ab6f7f 100644 --- a/inc/vCenter-SSL.ps1 +++ b/inc/vCenter-SSL.ps1 @@ -60,12 +60,13 @@ $DnsSleep = 15 # ---------------------------- # Load PowerCLI + Posh-ACME # ---------------------------- +Write-Log INFO "Loading Modules..." try { if (-not (Get-Module -ListAvailable -Name VCF.PowerCLI)) { Install-Module VCF.PowerCLI -Force -Scope AllUsers -AllowClobber } - Import-Module VCF.PowerCLI -ErrorAction Stop -DisableNameChecking + Import-Module VCF.VimAutomation.Core -ErrorAction Stop Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -Confirm:$false ` -ParticipateInCEIP:$false -DisplayDeprecationWarnings:$false | Out-Null @@ -76,7 +77,7 @@ try { if (-not (Get-Module -ListAvailable -Name Posh-ACME)) { Install-Module Posh-ACME -Force -Scope AllUsers } - Import-Module Posh-ACME -ErrorAction Stop -DisableNameChecking + Import-Module Posh-ACME -ErrorAction Stop Write-Log INFO "Posh-ACME loaded." } catch { Show-Failure $_ }