public void ShutdownGuest() { ConsoleOutput.WriteLine(" Shutting down 'Remote:{0}'", _name); if (!_simulationOnly) { _vm.ShutdownGuest(); } }
/// <summary> /// /// </summary> /// <returns></returns> public override bool Execute() { using (VMWareVirtualHost host = GetConnectedHost()) { using (VMWareVirtualMachine virtualMachine = OpenVirtualMachine(host)) { Log.LogMessage(string.Format("Shutting down {0}", Filename)); virtualMachine.ShutdownGuest(ShutdownTimeout); } } return(true); }