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