Greetings,
I am trying to have a .bat file to run a workstation via command line.
It works fine with running unencrypted VM.
Example:
off
echo Running Win 11 headless
SETLOCAL
SET Path=%path%;"C:\Program Files (x86)\VMware\VMware VIX"
vmrun start "T:\VMware\Windows 11\Windows 11.vmx"
ENDLOCAL
However, when trying to use the vmrun, with encrypted VM, it prompts to enter the password:
From the command line getting error:
C:\Program Files (x86)\VMware\VMware VIX>vmrun start "T:\VMware\Windows 11\Windows 11.vmx"
Encrypted virtual machine password:
Error: The operation is not supported
Note: Everything works fine from the GUI, however, I want to have it included within the .bat file.
I found the following KB:
And tried to tweak the .bat file, but I am not able to run the machine.
Any idea what should be changed to get the .bat file working for the encrypted VM?
Thanks
I found the fix.
Using the following .cmd file instead works fine.
"C:\Program Files (x86)\VMware\VMware VIX\vmrun.exe" -vp myVMpassword start "T:\VMware\Windows 11\Windows 11.vmx" nogui
I found the fix.
Using the following .cmd file instead works fine.
"C:\Program Files (x86)\VMware\VMware VIX\vmrun.exe" -vp myVMpassword start "T:\VMware\Windows 11\Windows 11.vmx" nogui
FYI: The "nogui" parameter is mandatory when you use -vp switch.
