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服务。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值