getting this error when adding $esxcli to the script
any idea?
Looks like you have an ESXi node in your vCenter that is not connected.
Change the line like this
foreach($vmhost in (Get-Cluster -Name $cluster | Get-VMHost -State Connected)){
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Looks like you have an ESXi node in your vCenter that is not connected.
Change the line like this
foreach($vmhost in (Get-Cluster -Name $cluster | Get-VMHost -State Connected)){
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
nice . thanks