Scripts in this repository use Powershell and the VMware PowerCLI plugin. More information about PowerCLI is here: https://developer.broadcom.com/powercli
Version 12.5.0 of PowerCLI has a bug that will break these scripts. Here's how to check to see if it gets fixed:
Connect-VIServer
Get-VsanClusterConfiguration
Disconnect-VIServerConnect to any vCenter. If the second command works, you are good to go.
Update: this is resoved in version 12.6.0 of PowerCLI
Find-Module -Name VMware.PowerCLI -AllVersionsInstall the latest version:
Install-Module -Name VMware.PowerCLIInstall a specific version:
Install-Module -Name VMware.PowerCLI -RequiredVersion 12.0.0.15947286Update-Module -Name VMware.PowerCLIGet-Module VMware.* -ListAvailable | Uninstall-Module -ForceGet-Module -Name VMware.* -ListAvailable | Select-Object -Property Name,VersionHomelab servers typically do not have valid certificates. This will allow PowerCLI to interact with these servers:
Set-PowerCLIConfiguration -Scope User -InvalidCertificateAction Ignore