Thread moved to the PowerCLI COmmunity.
It looks as if you are not connected to the vCenter.
Can you check what is in
$global:defaultviserver
If that is empty, do a
Connect-VIServer -Server vcenterserver
Thread moved to the PowerCLI COmmunity.
It looks as if you are not connected to the vCenter.
Can you check what is in
$global:defaultviserver
If that is empty, do a
Connect-VIServer -Server vcenterserver