Today i upgraded VM Ware Workstation on Win11 PC from 15 to 17. After that in guest i upgrade win10 to win11. All works fine.
But something in vmrun.exe is changed so following command didn´t work anymore???
"C:\Program Files (x86)\VMware\VMware Workstation\vmrun.exe" start "C:\VirtualMachines\Buchhaltung\Buchhaltung.vmx"
Error: The operation is not supported
The old command for stop vm is working.
"C:\Program Files (x86)\VMware\VMware Workstation\vmrun.exe" stop "C:\VirtualMachines\Buchhaltung\Buchhaltung.vmx"
So how can i start a vm in a batch in vers.17 ????
Thanks for solutions 🙂
The below is working fine for me on Windows 11
"C:\Program Files (x86)\VMware\VMware Workstation\vmrun.exe" start "D:\Utilities\VMs\Windows 11\VWindows 11.vmx" nogui
This cmd is located in the startup folder of host and it will launch the VM at windows boot with no gui.
To get to the gui, I run the below [second] cmd.
@if (@CodeSection == @batch) @then
SET SendKeys=CScript //nologo //E:JScript "%~F0"
Start "C:\Program Files (x86)\VMware\VMware Workstation\vmware.exe" "D:\Utilities\VMs\Windows 11\VWindows 11.vmx"
TIMEOUT /t 3
// JScript section
var WshShell = WScript.CreateObject("WScript.Shell");
This second cmd runs the vm with gui and also send automatic keystrokes after a delay of 3 seconds [so that workstation is launched in these three seconds] to toggle the vm to fullscreen mode. The net effect is at windows boot, the vm starts with no gui. When I click on the second cmd, the vm launches in fullscreen mode which is neat.
Try deleting your shortcuts and remaking fresh new ones.