It tells you both if you have it installed and if you're running it.

The WMI method is good too on current versions but you said you wanted something that was working on what would amount to older and newer versions, not so sure that exact same code would work on the older versions or not.

At the time back when I wrote it (as I recall) the names of the service were different on different versions or something like that that disuaded me from using that method.
That may no longer be the case. VMware was not quite as large or "Corporate" back when I wrote the code.


If I were to do it now days I'd go with WMIConfirm() and VMwareState($Running) sort of code.