VmCOM Scripting Examples Fail on 64-Bit Windows Hosts
Details
Why does running the VmCOM scripting examples fail on my Windows
64-bit host operating system?
Solution
There isn't a 64-bit version of the VMware VmCOM API. The
32-bit version of VmCOM can be used on 64-bit Windows operating
systems as long as it is invoked using the 32-bit version of the
command-line window (cmd.exe) or Windows Scripting Host
(cscript.exe). Using the default 64-bit version of cmd.exe or
cscript.exe to run a script will return an error. You can typically
find the 32-bit versions of these executables in the
%WINDIR%\SysWOW64\ directory. If the
WINDIR variable is set to the default Windows
directory on the C drive, for example, the directory path is
C:\Windows\SysWOW64. Using the versions of these programs
located in %WINDIR%\System32 fails to execute the
script.