Comment

Instead of using target=vi://administrator@vsphere.local can I use target=vi://DOMAIN\USER

The script is failing as it's resolving the domain name to a DC then trying and failing to connect on port 443 which obviously won't be open.