I think thats the problem.
The data that is being passed on the Connect-Viserver is not the correct one.
What you can do is:
Connect-VIServer -Server $vCenterIP.vCenterIP
or
$realvCenterIP = (Write-outPut $vCenterIP).vCenterIP
I think thats the problem.
The data that is being passed on the Connect-Viserver is not the correct one.
What you can do is:
Connect-VIServer -Server $vCenterIP.vCenterIP
or
$realvCenterIP = (Write-outPut $vCenterIP).vCenterIP