VMware Communities
Agendum2
Contributor
Contributor

Identify VM within Guest OS

Running within a Windows 7 Guest OS, is there a way to identify which VM is running?  Preferrably, to get the VMX file path or the VmPath.  Thanks!

Reply
0 Kudos
2 Replies
WoodyZ
Immortal
Immortal

What explicitly and specifically are you trying to do?

Reply
0 Kudos
Agendum2
Contributor
Contributor

I am using .NET 4 and WCF to send a signal back to the host when an event occurs in the guest OS.  I would like to make sure the signal can uniquely identify a VM and that identity can also be directly mapped to what is output by "vmrun list" and what I can feed into "vmrun start" to resume a VM.

I can do this by hard coding machine names to VMX files in a configuration file, but would prefer my app running in the guest OS be a little more intelligent.

Reply
0 Kudos