A-A+
VMware虚拟机自动开机,重启,挂机命令
相关脚本:
1、系统自动启动VMware虚拟机
"C:\Program Files\vmrun.exe” -T ws start "D:\system\Windows XP.vmx"
2、系统自动关闭VMware虚拟机
"C:\Program Files\VMware\VMware Workstation\vmrun.exe” -T ws stop "D:\system\Windows XP Professional\Windows XP Professional.vmx"
3、系统自动挂起VMware虚拟机
"C:\Program Files\VMware\VMware Workstation\vmrun.exe” –T ws suspend "D:\system\Windows Server 2003 Enterprise Edition\Windows Server 2003 Enterprise Edition.vmx"
4、系统自动重启VMware虚拟机
"C:\Program Files\VMware\VMware Workstation\vmrun.exe” -T ws reset "D:\system\Windows XP Professional\Windows XP Professional.vmx"
5、系统自动暂停VMware虚拟机
"C:\Program Files\VMware\VMware Workstation\vmrun.exe” -T ws pause "D:\system\Windows XP Professional\Windows XP Professional.vmx"
6、系统自动暂停恢复VMware虚拟机
"C:\Program Files\VMware\VMware Workstation\vmrun.exe” -T ws unpause "D:\system\Windows XP Professional\Windows XP Professional.vmx"
:1
ping 127.0.0.1 -n 600>nul
“D:\Program Files (x86)\VMware\VMware Workstation\vmrun.exe” -T ws reset “D:\vmwareIOS\Kali-Linux-2016.2-vm-i686\Kali-Linux-2016.2-vm-i686.vmx”
goto 1
【每10分钟重启一次虚拟机】