Instructions for starting VMWare with Windows

ARTRU

Unlike VirtualBox, it supports creating virtual machine shortcuts, making it easier to start with Windows.

VMWare you can still start with windows using CMD file.

Create CMD file

Before generating the code you need to find the following 2 folders:

  1. VMWare software installation directory:
    H:\Program Files (x86)\VMware\VMware Workstation\vmrun.exe
  2. Directory containing virtual machine partition:
    H:\Users\ARTRU\Documents\Virtual Machines\Windows 11 x64\Windows 11 x64.vmx
VMWare installation folder and virtual machine folder
VMWare installation folder and virtual machine folder

Next, create a file. cmd have arbitrary name

For example, I named it VMrun.cmd

Right click on the file VMrun.cmd → choose edit → fill in the code according to the form below and save. Remember to correct the path to the 2 folders on your computer.

"H:\Program Files (x86)\VMware\VMware Workstation\vmrun.exe" start "H:\Users\ARTRU\Documents\Virtual Machines\Windows 11 x64\Windows 11 x64.vmx" nogui
Create VMrun.cmd file
Create VMrun.cmd file
Edit the VMrun.cmd file
Edit the VMrun.cmd file

Explain:

  1. "H:\Program Files (x86)\VMware\VMware Workstation\vmrun.exe"
    Is the path to the file vmrun.exe located in the VMWare software installation folder.
  2. start: start the virtual machine with the following path.
  3. "H:\Users\ARTRU\Documents\Virtual Machines\Windows 11 x64\Windows 11 x64.vmx"
    Is the path pointing to the virtual machine file with the extension . .vmx
  4. nogui: used to start the background run mode (run in background). If you want to show the VMWare interface always, delete this line.

Start with windows for created CMD file

Create Task Scheduler for VMrun.cmd
Create Task Scheduler for VMrun.cmd
  1. Access Task Scheduler → press Create Task
  2. Name the boot process at the tab Name
  3. Tab Triggers → choose New → on the card Begin the task select At log on
  4. Tab Actions → choose New → select file cmd that you created above.
  5. Tab Conditions → uncheck all checkboxes.
  6. Tab Settings → just select the first line Allow task to be run on demand
  7. Press OK to save.
Configure Task-Scheduler for VMrun.cmd
Configure Task-Scheduler for VMrun.cmd

In case of error in Admin rights, you go to Change User or Group → press Advanced → press Find Now → select line Administrators Have "s" ok → Ok to save the configuration.

Assign Administrators permissions in Task Scheduler for VMrun.cmd
Assign Administrators permissions in Task Scheduler for VMrun.cmd
COMMENT

Related Articles