Offset and length are out of the bounds of the array or count is greater number of elements from index to the end of the source collection.

Simply press on this one and I look forward to any other idea.

Here's the code-

$Cluster = "clustername".

$esxpass = "password"

"$esxcheck = foreach ($vmhost get-cluster-name $Cluster | get-vmhost | select name)"

{VIServer is Connect-Server $vmhost.name - root - password $esxpass user}

"foreach ($vmhost get-cluster-name $Cluster | get-vmhost | select name)"

{$vmhost.name viserver-disconnect-confirm: $false}

Works fine on a 16 node cluster, but fails with the error on a cluster to 31 knots

Are you sure of this code?

What exactly are you trying to do?

Tags: VMware

Similar Questions

Maybe you are looking for