Update vCenter-SSL.ps1
This commit is contained in:
@@ -61,15 +61,15 @@ $DnsSleep = 15
|
||||
# Load PowerCLI + Posh-ACME
|
||||
# ----------------------------
|
||||
try {
|
||||
if (-not (Get-Module -ListAvailable -Name VMware.PowerCLI)) {
|
||||
Install-Module VMware.PowerCLI -Force -Scope AllUsers -AllowClobber
|
||||
if (-not (Get-Module -ListAvailable -Name VCF.PowerCLI)) {
|
||||
Install-Module VCF.PowerCLI -Force -Scope AllUsers -AllowClobber
|
||||
}
|
||||
|
||||
Import-Module VMware.PowerCLI -ErrorAction Stop
|
||||
Import-Module VCF.PowerCLI -ErrorAction Stop
|
||||
Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -Confirm:$false `
|
||||
-ParticipateInCEIP:$false -DisplayDeprecationWarnings:$false | Out-Null
|
||||
|
||||
Write-Log INFO "VMware.PowerCLI loaded."
|
||||
Write-Log INFO "VCF.PowerCLI loaded."
|
||||
} catch { Show-Failure $_ }
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user