Update vCenter-SSL.ps1

This commit is contained in:
2024-11-13 21:38:42 -06:00
parent 33d7f540a5
commit bc80d13bed

View File

@@ -123,9 +123,9 @@ $Params = @{
Uri = "https://$vCenterURL/rest/com/vmware/cis/session"
}
if ($IsCoreCLR) {
#if ($IsCoreCLR) {
$Params.Add("SkipCertificateCheck", $true)
}
#}
try {
$RestApi = Invoke-WebRequest @Params
@@ -219,9 +219,9 @@ $Params = @{
Body = $json
}
if ($IsCoreCLR) {
#if ($IsCoreCLR) {
$Params.Add("SkipCertificateCheck", $true)
}
#}
Write-Host "Preparing to Replace Certificate." -ForegroundColor Green
try {