Is it possible to control the network state of a running VM from the commandline?
I would like to
- disconnect the network
- change the type either to bridged or nat
- reconnect the network
I tried running
vmrun.exe -T ws writeVariable path-to-vm.vmx runtimeConfig
ethernet0.connectionType nat
on a bridged VM but this doesn't change the current state (readVariable will report nat but the VM is still bridged and says so in the Workstation GUI).