I’ve got this remote Hyper-V machine that I’m using as a lab server. Within this lab there are serveral virtual machines that run in an isolated lan and can only reach the outside world over a proxy, so connecting to them from the “production” network isn’t possible. What I’m trying to do is remote into the Hyper-V host, and execture commands on the isolated VM’s. I’ve figured out how to do that but’s its a bit much if you ask me. I was wondering if there’s an easier/smarter way to do it?
You need the VMware powercli modules for that as you cannot use invoke-command to a remote esxi machine. Just use the get-vm to get all the machines and find a property that indicates the existence of the VMware tools. I’m pretty sure there’s a way to remotely install the VMware tools next via the VMware interface itself.