Detecting locally runing virtual machines

(imported topic written by snoczp91)

Does anyone have a good way they detect locally running virtual machines? Either running under VMware Workstation. Player, or MS’ Virtual PC?

How many are on a local client OS. Are they running or not?

They may or may not have the BF agent installed.

Thx.

(imported comment written by lmpymilk91)

I only have VMware Workstation VMX Ver. 6.5.2.7026 installed but here is what I get.

q:following texts of lasts “%22 %22” of (string values of selects “CommandLine from win32_process” of wmi) whose (it contains “vmware-vmx.exe”)

A: Z:\My Virtual Machines\MyImageName-001\MyImageName-001.vmx"

A: Z:\My Virtual Machines\MyImageName-002\MyImageName-002.vmx"

T: 40.017 ms