Hi,
If a Windows 7 guest is shut down (e.g. using Task manager to run shutdown.exe in Win7), is there a way that the VMware Workstation host (Win8) can sense that the VM has shutdown?
Here's the scenario:
The Win7 guest does a daily backup at the end of the day.
The 3rd party Win7 backup software (running in the VM) is able to shut down Win7 after the backup has completed.
I would like the Win8 host to sense that the Win7 VM has shut down, so that I can have the Win8 host automatically shutdown. If there's a way to generate an Event Log entry in Win8, I could trigger the Win8 host shutdown based on that Event.
Is this possible?
Thanks
An option migh be to run
C:\Program Files (x86)\VMware\VMware Workstation>vmrun -T ws list
and evaluate the output.
André
Hi André,
Thanks for the reply and syntax.
With one VM currently running, I see that returns:
Total running VMs: 1
I suppose I could cook up a little batch file that executes:"
"C:\Program Files (x86)\VMware\VMware Workstation\vmrun.exe" -T ws list
and pipe the output through a "Find", to see if the output has changed to :
Total running VMs: 0
but, I'd have to schedule that batch file "Task" every five minutes. That would work, but could get tedious (the backups complete sometimes in a couple minutes, 15, 30, 45 mins, it just depends on how much changed that day (ie. incremental backups).
Humm . . .