Skip to content

Commit 4522c2a

Browse files
committed
check for PowerCLI 13.3
Added code to check for PowerCLI 13.3.
1 parent ea1aa36 commit 4522c2a

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

VvolsReadinessCheckerV2.ps1

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ This can be run directly from PowerCLI or from a standard PowerShell prompt. Pow
3636
Supports:
3737
-FlashArray //X, //C, //XL
3838
-vCenter 7.0U3 and later
39-
-PowerCLI VMware PowerCLI 13.3 Build 24145081 or later required
39+
-PowerCLI VMware PowerCLI 13.3 or later required
4040
4141
#>
4242

@@ -165,11 +165,14 @@ $PowerCLIVersion = Get-Module -Name VMware.PowerCLI -ListAvailable | Select-Obje
165165

166166
# If the PowerCLI Version is not v13 or higher, recommend that the user install PowerCLI 13 or higher
167167
If ($PowerCLIVersion.Version.Major -ge "13") {
168-
Write-Host "PowerCLI version 13 or higher present, " -NoNewLine
169-
Write-Host "proceeding" -ForegroundColor Green
168+
if ($PowerCLIVersion.Version.Minor -ge "3") {
169+
Write-Host "PowerCLI version 13.3 or higher present, " -NoNewLine
170+
Write-Host "proceeding" -ForegroundColor Green
171+
}
172+
170173
} else {
171-
Write-Host "PowerCLI version could not be determined or is less than version 13" -Foregroundcolor Red
172-
Write-Host "Please install PowerCLI 13 or higher and rerun this script" -Foregroundcolor Yellow
174+
Write-Host "PowerCLI version could not be determined or is less than version 13.3" -Foregroundcolor Red
175+
Write-Host "Please install PowerCLI 13.3 or higher and rerun this script" -Foregroundcolor Yellow
173176
Write-Host " "
174177
exit
175178
}

0 commit comments

Comments
 (0)