`
songzq0102
  • 浏览: 32526 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

VMware 懒人懒办法

阅读更多
打开任务管理器发现里边运行着虚拟机的好几个进程,虚

拟机平时用得不是很多可是一下全关了用的时候还得手动开。

为了避免平时不必要的资源浪费,就又用到批处理了。
程序目录下建立VMware.bat在桌面为其建立快捷方式。
如下:
@echo off&setlocal enabledelayedexpansion
sc query VMAuthdService |findstr RUNNING>nul&&(
sc stop VMAuthdService
sc config   VMAuthdService start= DISABLED
sc stop vmount2
sc config   vmount2 start= DISABLED
sc stop VMnetDHCP
sc config   VMnetDHCP start= DISABLED
sc stop "VMware NAT Service"
sc config   "VMware NAT Service" start= DISABLED
)||(
sc config   VMAuthdService start= AUTO
sc start VMAuthdService
sc config   vmount2 start= AUTO
sc start vmount2
sc config   VMnetDHCP start= AUTO
sc start VMnetDHCP
sc config   "VMware NAT Service" start= AUTO
sc start "VMware NAT Service"
start vmware.exe
)
以后运行虚拟机就运行它的快捷方式就行了。关掉虚拟机程序

后再运行一次,运行虚拟机时打开的服务便又关上了。

做好之后就可以先用它关闭所有vmware服务。
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics