b_johnston
Contributor
Contributor

If you are working with multiple vcenter servers then just add the $DefaultVIServers variable after the $VcenterServername <server name> like this:

$vCenterServerName = "VcenterServer"

$DefaultVIServers="VcenterServer"