VMware Workstation 开机启动虚拟机

"C:\Program Files (x86)\VMware\VMware Workstation\vmrun.exe" start "G:\VM\OMV\OMV.vmx" nogui

stop:

"C:\Program Files (x86)\VMware\VMware Workstation\vmrun.exe" stop "G:\VM\OMV\OMV.vmx" nogui

go to gpedit.msc:

用户配置 - Windows 设置 - 脚本(登录/注销)

分别添加登录脚本和注销脚本。