I need to start a virtual machine on Windows Startup and read about move the virtual machine to the "Shared VMs" tab. This worked for me since now when I need to auto start a Virtual Machine with a Physical Disk reference. By default VMware Workstation won't allow you to do this if you are loading a physical disk (from host machine).
I started to search for a solution and found some info about the "vmrun" command which allows you to start a virtual machine using the Windows Console (cmd.exe). Turns out that it works! If you execute something like this:
vmrun.exe -T ws start "D:\VM\Name.vmx"
The virutual machine starts immediately. So far we are good. Now, If I create a batch script (.bat) with the same line and configure the system to execute that batch file on startup nothing happens and I got this system prompt:
Also I got my VM blocked and force me to Take ownership, which I can't and finally offers me the alternative to Remove the VM from library.
This confuses me because I can start the VM from a command prompt but I can't do the same using a .bat file.
PS: I modified the windows environment variables to allow me to type only the vmrun command without pointing the entire path to the .exe. Somehow the system tries to execute the Virtual Machine (which says the .bat is executed) and finally can't do it completely.
**Post edit: I'm using the NSSM program to set other programs to run as services, which by the way I found in this great platform.