Update vCenter-SSL.ps1
This commit is contained in:
@@ -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 $_ }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user