Update vCenter-SSL.ps1

This commit is contained in:
2025-11-19 22:23:33 -06:00
parent 197b4fa09f
commit e37e13780e

View File

@@ -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 $_ }