Click here to Skip to main content
16,014,392 members

Comments by Member 10685840 (Top 4 by date)

Member 10685840 8-Apr-15 8:49am View    
Thank you for your replay, but I have solved the issue on how to shutdown the virtual machine.
Note: powering off the machine is not safe as shutting down.
my code was right, except that i mistaken the configuration path. the right code is as follow:

VMWareVirtualHost host = new VMWareVirtualHost();
host.ConnectToVMWareVIServer("172.16.1.72", "root","123456");
IVMWareVirtualMachine machine = new VMWareVirtualMachine();
machine = host.Open("[datastore1] Kerio contarol/Kerio contarol.vmx");
machine.ShutdownGuest();
-------------------------------------
The current problem is how to shutdown the host itself.
Member 10685840 8-Apr-15 5:50am View    
I have solved my second issue which i could connect to virtual machine as I was adding the wrong virtual machine configuration file which is ("[172.16.1.72] Kerio contarol.vmxf"); while the right path is ([datastore1] Kerio contarol/Kerio contarol.vmx).
Member 10685840 8-Apr-15 4:43am View    
I have looked at that link before, but it does not illustrate how to connect to a virtual machine in a network remotely neither how to shutdown the host.
Member 10685840 20-Mar-14 10:44am View    
I updated the Q.